"use strict";(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([["lazy-react-partial-actions-custom-images-retention-policy","lazy-react-partial-actions-policies","lazy-react-partial-actions-survey","lazy-react-partial-browser-geo-location","lazy-react-partial-codespaces-survey","lazy-react-partial-consent-experience","lazy-react-partial-copilot-assisted-review-upsell","lazy-react-partial-copilot-code-review-feedback","lazy-react-partial-copilot-code-review-upsell","lazy-react-partial-copilot-code-review-view-session","lazy-react-partial-copilot-content-exclusion","lazy-react-partial-copilot-survey","lazy-react-partial-custom-signup-content-manager","lazy-react-partial-date-picker-partial","lazy-react-partial-delete-configuration-dialog","lazy-react-partial-demo-repo-tour","lazy-react-partial-education-schools-auto-complete","lazy-react-partial-email-subscription-form","lazy-react-partial-external-group-team-mismatch-widget","lazy-react-partial-growth-banner-partial","lazy-react-partial-network-configurations-select-panel","lazy-react-partial-new-agent-task-button","lazy-react-partial-react-partial-anchor-example","lazy-react-partial-react-sandbox-sidenav","lazy-react-partial-ref-selector-partial","lazy-react-partial-search-results","lazy-react-partial-security-center-pagination","lazy-react-partial-sponsors-dashboard-your-sponsors","lazy-react-partial-sponsors-newsletters","lazy-react-partial-trade-screening-status-banner","react-code-view"],{1868:(e,t,n)=>{n.d(t,{c9:()=>b,_$:()=>x,iU:()=>y,tV:()=>f});var i=n(74848),r=n(21373),a=n(57352),o=n(10095),s=n(38621),l=n(29731),c=n(30459),d=n(96540),u=n(43258),h=n(96379);let m=async(e,t,n)=>{try{return(await (0,h.DI)(e,{method:t,body:n})).ok}catch{return!1}},p=e=>{let t=new FormData;return t.append("feature",e),t};function f(e){let{alreadyRequested:t=!1,dismissed:n=!1,dismissedAt:i="",featureName:r="",requestPath:a=""}=e??{},[o,s]=(0,d.useState)(!1),[l,c]=(0,d.useState)(t),{addToast:h}=(0,u.Y6)(),f=async()=>{s(!0),await (l?(e,t)=>m(e,"DELETE",p(t)):(e,t)=>m(e,"POST",p(t)))(a,r)?c(!l):h({type:"error",message:"Something went wrong. Please try again later."}),s(!1)};return{inProgress:o,requested:l,dismissed:n,dismissedAt:i,toggleFeatureRequest:f}}function x({featureRequestInfo:e,learnMorePath:t,requestMessage:n,requestedMessage:r}){let{inProgress:a,requested:o,toggleFeatureRequest:s}=f(e);return e.showFeatureRequest?o?(0,i.jsx)(b,{inProgress:a,toggleFeatureRequest:s,requestedMessage:r}):(0,i.jsx)(y,{inProgress:a,toggleFeatureRequest:s,isEnterpriseRequest:e.isEnterpriseRequest,featureName:e.featureName,billingEntityId:e.billingEntityId,learnMorePath:t,requestMessage:n}):null}let y=({inProgress:e,toggleFeatureRequest:t,billingEntityId:n="",isEnterpriseRequest:r=!1,featureName:a,learnMorePath:o,requestMessage:s})=>{let{sendClickAnalyticsEvent:l}=(0,c.S)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(g,{onClick:()=>{t();let e=r&&n?`ref_cta:ask_enterprise_owners_for_access;ref_loc:${a};enterprise_id:${n};`:`ref_cta:ask_admin_for_access;ref_loc:${a};`;l({category:"member_feature_request",action:`action.${a}`,label:e})},inProgress:e,isEnterpriseRequest:r}),s&&(0,i.jsx)(j,{message:s}),o&&(0,i.jsx)(_,{onClick:()=>{l({category:"suggestion",action:"click_to_read_docs",label:`ref_cta:learn_more;ref_loc:${a};`})},path:o})]})},b=({inProgress:e,toggleFeatureRequest:t,requestedMessage:n})=>(0,i.jsxs)(i.Fragment,{children:[n&&(0,i.jsx)(v,{message:n}),(0,i.jsx)(w,{onClick:t,inProgress:e})]}),g=({onClick:e,inProgress:t,isEnterpriseRequest:n})=>(0,i.jsx)(r.Q,{onClick:e,variant:"primary",disabled:t,...(0,l.G)("feature-request-request-button"),children:t?"Requesting...":n?"Ask enterprise owners for access":"Ask admin for access"}),_=({onClick:e,path:t})=>(0,i.jsx)(a.A,{href:t,onClick:e,...(0,l.G)("feature-request-learn-more-link"),children:"Learn more"}),j=({message:e})=>(0,i.jsx)("span",{children:e}),v=({message:e})=>(0,i.jsxs)("span",{className:"d-inline-block color-fg-subtle mr-1",children:[(0,i.jsx)(o.A,{icon:s.CheckIcon}),e]}),w=({onClick:e,inProgress:t})=>(0,i.jsx)(a.A,{className:"color-fg-danger text-semibold",as:"button",onClick:e,disabled:t,...(0,l.G)("feature-request-cancel-link"),children:t?"Cancelling...":"Remove request"});try{x.displayName||(x.displayName="FeatureRequest")}catch{}try{y.displayName||(y.displayName="RequestFeature")}catch{}try{b.displayName||(b.displayName="CancelFeatureRequest")}catch{}try{g.displayName||(g.displayName="RequestCTA")}catch{}try{_.displayName||(_.displayName="LearnMore")}catch{}try{j.displayName||(j.displayName="RequestMessage")}catch{}try{v.displayName||(v.displayName="RequestedMessage")}catch{}try{w.displayName||(w.displayName="RemoveRequestCTA")}catch{}},4788:(e,t,n)=>{n.d(t,{N:()=>DebouncedWorkerManager});var i=n(35750),r=n(18150),a=n(85242),o=n(88243),s=n(16213),l=n(50467),c=new WeakMap,d=new WeakMap,u=new WeakMap,h=new WeakMap,m=new WeakMap,p=new WeakMap,f=new WeakSet;let DebouncedWorkerManager=class DebouncedWorkerManager{post(e){if((0,i._)(this,p)&&(0,i._)(this,p).call(this,e))return(0,i._)(this,u)&&clearTimeout((0,i._)(this,u)),(0,o._)(this,f,x).call(this,e);this.idle()?((0,i._)(this,u)&&clearTimeout((0,i._)(this,u)),(0,a._)(this,u,setTimeout(()=>{(0,o._)(this,f,x).call(this,e)},(0,i._)(this,m)))):(0,a._)(this,d,e)}idle(){return!(0,i._)(this,c)}terminate(){(0,i._)(this,h).terminate()}constructor(e,t=200,n){(0,s._)(this,f),(0,r._)(this,c,{writable:!0,value:void 0}),(0,r._)(this,d,{writable:!0,value:void 0}),(0,l._)(this,"onResponse",void 0),(0,r._)(this,u,{writable:!0,value:void 0}),(0,r._)(this,h,{writable:!0,value:void 0}),(0,r._)(this,m,{writable:!0,value:void 0}),(0,r._)(this,p,{writable:!0,value:void 0}),(0,a._)(this,h,e),(0,a._)(this,m,t),(0,a._)(this,p,n),(0,i._)(this,h).onmessage=({data:e})=>{this.onResponse&&this.onResponse(e),(0,i._)(this,d)?((0,o._)(this,f,x).call(this,(0,i._)(this,d)),(0,a._)(this,d,void 0)):(0,a._)(this,c,void 0)}}};function x(e){(0,a._)(this,c,e),(0,i._)(this,h).postMessage(e)}},6236:(e,t,n)=>{n.d(t,{E:()=>m});var i=n(74848),r=n(77430),a=n(96379),o=n(26607),s=n(94236),l=n(86877),c=n(5524),d=n(96540);let u={ownerDropdownOverlay:"SpacesOwnerDropdown-module__ownerDropdownOverlay--bEFXy",ownerListGroup:"SpacesOwnerDropdown-module__ownerListGroup--U2Z7L",orgLabel:"SpacesOwnerDropdown-module__orgLabel--W_FiN",errorListItem:"SpacesOwnerDropdown-module__errorListItem--eq64y"};var h=n(29731);function m({onSelect:e,repoId:t}){let[n,m]=(0,d.useState)([]),[p,f]=(0,d.useState)(!1),[x,y]=(0,d.useState)(void 0),b=(0,d.useCallback)(t=>{y(t),e(t)},[e]),g=(0,d.useCallback)(()=>{m([]),f(!0)},[]);return(0,d.useEffect)(()=>{(async()=>{try{let e=t?`/github-copilot/chat/custom_copilots_owners?repo_id=${t}`:"/github-copilot/chat/custom_copilots_owners",n=await (0,a.lS)(e),i=await n.json(),r=i?.owners;if(!n.ok||!r)return void g();m(r),r[0]&&b(r[0])}catch{g()}})()},[g,b,t]),(0,i.jsx)("div",{className:"mt-2 mb-1",children:(0,i.jsxs)(l.A,{children:[(0,i.jsx)(l.A.Label,{required:!0,children:"Owner"}),(0,i.jsxs)(s.W,{children:[(()=>{let e=x?.name||"Choose an owner",t=x?(0,i.jsx)(r.r,{src:x.avatarUrl},x.avatarUrl):void 0;return(0,i.jsx)(s.W.Button,{"data-testid":"owner-dropdown-anchor",alignContent:"start","aria-label":e,leadingVisual:t,children:e})})(),(0,i.jsx)(s.W.Overlay,{responsiveVariant:"fullscreen",width:"large",maxHeight:"large",className:u.ownerDropdownOverlay,children:(0,i.jsx)(c.l,{children:(0,i.jsx)(c.l.Group,{className:u.ownerListGroup,children:(0,i.jsxs)(c.l,{selectionVariant:"single",children:[n&&n.map(e=>{let{name:t,avatarUrl:n,displayName:a}=e;return(0,i.jsxs)(c.l.Item,{selected:t===x?.name,onSelect:()=>b(e),children:[(0,i.jsx)(c.l.LeadingVisual,{children:(0,i.jsx)(r.r,{src:n})}),t,(0,i.jsx)(c.l.Description,{children:a})]},t)}),!n.length&&!p&&(0,i.jsx)(c.l.Item,{disabled:!0,children:"Fetching owners\u2026"},"fetching-owners"),p&&(0,i.jsx)(c.l.Item,{disabled:!0,className:u.errorListItem,children:"An error occurred while loading owners. Please reopen the dialog to try again."},"error-fetching-owners")]})})})})]}),(0,i.jsx)(l.A.Caption,{children:x?"User"===x.type?(0,i.jsxs)("div",{className:"mt-2 d-flex flex-row flex-shrink flex-items-center",children:[(0,i.jsx)(o.A,{className:"mr-1",children:"Private"}),(0,i.jsx)("span",{...(0,h.G)("owner-user-caption"),children:"Only you will be able to see this space."})]}):(0,i.jsxs)("div",{className:"mt-2 d-flex flex-row flex-shrink",children:[(0,i.jsx)(o.A,{className:u.orgLabel,children:"Private"}),(0,i.jsx)("span",{...(0,h.G)("owner-org-caption"),children:"Only visible to you and organization admins. You can share it later."})]}):"Where we will store your space."})]})})}try{m.displayName||(m.displayName="SpacesOwnerDropdown")}catch{}},7808:(e,t,n)=>{n.d(t,{z:()=>WebWorker});var i=n(35750),r=n(18150),a=n(85242),o=n(50467);let WebWorker=class WebWorker{set onmessage(e){this.worker.onmessage=e}postMessage(e){this.worker.postMessage(e)}terminate(){this.worker.terminate()}constructor(e,t){(0,o._)(this,"worker",void 0);try{this.worker=new Worker(`${e}?module=true`,{type:"module"})}catch{console.warn("Web workers are not available. Please enable web workers to benefit from the improved performance."),this.worker=new MainThreadWorker(t)}}};var s=new WeakMap,l=new WeakMap;let MainThreadWorker=class MainThreadWorker{async postMessage(e){if((0,i._)(this,s))return;let t={data:(0,i._)(this,l).call(this,{data:e})};this.onmessage?.(t)}terminate(){(0,a._)(this,s,!0)}constructor(e){(0,r._)(this,s,{writable:!0,value:!1}),(0,o._)(this,"onmessage",void 0),(0,r._)(this,l,{writable:!0,value:void 0}),(0,a._)(this,l,e)}}},8934:(e,t,n)=>{n.d(t,{x:()=>l});var i=n(74848),r=n(21728),a=n(13523),o=n(96540),s=n(54571);let l=(0,o.forwardRef)(function(e,t){let n,o,l,d,u,h,m=(0,r.c)(13);m[0]!==e?({children:n,src:l,...o}=e,m[0]=e,m[1]=n,m[2]=o,m[3]=l):(n=m[1],o=m[2],l=m[3]),m[4]===Symbol.for("react.memo_cache_sentinel")?(d=[],m[4]=d):d=m[4];let[p]=(0,s.I)(c,!0,d);return m[5]!==p||m[6]!==l?(u=p?{}:{src:l,"data-nonce":(0,a.M1)()},m[5]=p,m[6]=l,m[7]=u):u=m[7],m[8]!==n||m[9]!==o||m[10]!==t||m[11]!==u?(h=(0,i.jsx)("include-fragment",{...o,ref:t,...u,children:n}),m[8]=n,m[9]=o,m[10]=t,m[11]=u,m[12]=h):h=m[12],h});try{l.displayName||(l.displayName="IncludeFragment")}catch{}function c(){return!1}},10242:(e,t,n)=>{n.d(t,{A:()=>o});var i=n(74848),r=n(57352);let a={link:"FeedbackLink-module__link--Ga4DP"},o=({feedbackUrl:e})=>(0,i.jsx)(r.A,{className:a.link,href:e,children:"Give feedback"});try{o.displayName||(o.displayName="FeedbackLink")}catch{}},10925:(e,t,n)=>{n.d(t,{H:()=>r});var i=n(76648);function r(e,t){let{csrf_tokens:n}=(0,i.B)();return n?.[e]?.[t]}},14195:(e,t,n)=>{n.d(t,{KY:()=>h,Kv:()=>u,Op:()=>CodeNavigationInfo});var i=n(50467),r=n(25407),a=n(96379),o=n(89136),s=n(89024),l=n(15459);let CodeNavigationInfo=class CodeNavigationInfo{initCodeSections(){let e=new Map,t=new Map;for(let n=0;n{let t=this.blobLines[e.ident_utf16.start.line_number]||"",n=(0,l.N_)(e,t,{stylingDirectives:this.stylingDirectives,repo:this.repo,refInfo:this.refInfo,path:this.path});return this.lineIndexedSymbols[n.lineNumber]=n,n})}getBlobLine(e){return this.blobLines[e]||""}getSymbolOnLine(e){return this.lineIndexedSymbols[e]}initSymbolTree(){if(this.symbols){let e=[],t=this.symbols.filter(e=>"field"!==e.kind.fullName).map(t=>{let n=0;for(let a=e.length-1;a>=0;a--){var i,r;if(i=t,r=e[a],i.extent.start.line===r.extent.end.line?i.extent.start.column>r.extent.end.column:i.extent.start.line>r.extent.end.line)e.pop();else{n=e.length;break}}return e.push(t),t.setSymbolDepth(n),{symbol:t,depth:n}});this.symbolTree=[];for(let e=0;en.depth){let i=function e(t,n){let i=[],r=t[n];for(let a=n+1;ar.depth){let r=e(t,a);a+=d(r),i.push({symbol:n.symbol,children:r,isParent:r.length>0})}else break}return i}(t,e);e+=d(i),this.symbolTree.push({symbol:n.symbol,isParent:!0,children:i});continue}this.symbolTree.push({symbol:n.symbol,isParent:!1,children:[]})}}}createReferences(e){return e.map(e=>{let t=new o.BW({ident:e,repo:this.repo,refInfo:this.refInfo,path:this.path,isPlain:this.isPlain,source:o.u.BLOB_CONTENT});return t.setSnippet(void 0,this.stylingDirectives?.[e.start.line],this.blobLines[e.start.line],void 0),t})}getReferencesToSymbol(e){let t=u(this.blobLines,(0,s.ah)(e));return this.createReferences(t)}getReferencesToSearch(e){let t=u(this.blobLines,(0,s.tz)(e));return this.createReferences(t)}getDefinitionsAndReferences(e,t,n){this.setLoading(!0);let i=(async()=>{let i=this.getSymbolOnLine(t+1);if(i&&i.name===e)return{definitions:[i],backend:"search"};let[r,a]=await this.getAlephDefinitions(e,t,n,this.loggedIn);if("search"===a){let t=this.getLocalDefinitions(e);t.length>0&&(r=t);let n=r.find(e=>e.path===this.path&&e.repo===this.repo);n&&(r=[n]),a="search"}else{let t=this.getLocalDefinitions(e,!0);for(let n of r)""===n.kind.fullName&&n.name===e&&(n.kind=t[0]?t[0].kind:new o.v0({kind:""}))}return{definitions:r,backend:a}})(),r=(async()=>{let{definitions:t}=await i,n=t.map(e=>e.lineNumber);return{references:this.getReferencesToSymbol(e).filter(e=>!n.includes(e.lineNumber)),backend:"search"}})(),a=(async()=>{let r="SYMBOL_KIND_UNKNOWN",a=this.getSymbolOnLine(t+1);if(a)r=a.kind.enumStringVal;else{let{definitions:e}=await i;r=e[0]?.kind?.enumStringVal||r}return this.getAlephReferences(e,t,n,this.loggedIn,r)})();return{definitions:i,localReferences:r,crossReferences:(async()=>{let[e,t]=await a;return{references:e,backend:t}})(),setLoading:this.setLoading}}getLocalDefinitions(e,t=!1){let n=9,i=[];for(let r of this.symbols)r.name===e&&(r.kind.ranke).map(t=>(0,l.zs)(t,{stylingDirectives:this.stylingDirectives,repo:this.repo,refInfo:this.refInfo,path:this.path,symbol:e,backend:d})),d]}async getAlephReferences(e,t,n,i,o){let s,d="search";if(""===e&&-1===t&&-1===n||!i)return[[],d];let u=(0,r.lkl)({repo:this.repo,type:"references",q:e,language:this.language,row:t,column:n,ref:this.refInfo.name,path:this.path,codeNavContext:"BLOB_VIEW",symbolKind:o}),h=await (0,a.lS)(u);if(!h.ok)return[[],d];try{s=await h.json()}catch{return[[],d]}d=c(s.backend)??"search";let m=new Set;return[s.payload.flatMap(e=>e).reduce((e,t)=>{var n;if(t.path===this.path)return e;let i=(0,l.QV)(t,{stylingDirectives:this.stylingDirectives,repo:this.repo,refInfo:this.refInfo,path:this.path,backend:d});return n=i.lineNumber,m.has(n)||(m.add(n),0)||e.push(i),e},[]).sort((e,t)=>e.lineNumber-t.lineNumber),d]}constructor(e,t,n,r,a,o,s,l,c,d){(0,i._)(this,"repo",void 0),(0,i._)(this,"refInfo",void 0),(0,i._)(this,"language",void 0),(0,i._)(this,"path",void 0),(0,i._)(this,"loggedIn",void 0),(0,i._)(this,"blobLines",void 0),(0,i._)(this,"symbols",void 0),(0,i._)(this,"lineIndexedSymbols",{}),(0,i._)(this,"isPlain",void 0),(0,i._)(this,"stylingDirectives",void 0),(0,i._)(this,"setLoading",void 0),this.setLoading=d,this.setLoading(!0),this.repo=e,this.refInfo=t,this.path=n,this.loggedIn=r,this.language=l,this.blobLines=a,this.stylingDirectives=s,this.isPlain=c,this.symbols=this.initSymbols(o),this.initSymbolTree(),this.initCodeSections(),this.setLoading(!1)}};function c(e){switch(e){case"ALEPH_PRECISE":case"ALEPH_PRECISE_PREVIEW":case"ALEPH_PRECISE_DEVELOPMENT":return"precise";case"BLACKBIRD":return"search";default:return null}}function d(e){let t=e.length;for(let n=0;n=200,r={},a=e.reduce((e,i)=>{if(r[i.ident.start.line])return e;r[i.ident.start.line]=!0;let a=(0,s.lA)(n,[t[i.ident.start.line]]),o=a.next();for(;!o.done&&e.length<200;){let{column:t,columnEnd:n}=o.value;e.push({start:{line:i.ident.start.line,column:t},end:{line:i.ident.start.line,column:n}}),o=a.next()}return e},[]);if(a.length<200&&i){let i=e[e.length-1].ident.start.line,r=(0,s.lA)(n,t,i),o=r.next();for(;!o.done&&a.length<200;){let{line:e,column:t,columnEnd:n}=o.value;a.push({start:{line:e,column:t},end:{line:e,column:n}}),o=r.next()}}return a}},14343:(e,t,n)=>{n.d(t,{d:()=>i});function i(e,t,n){return[...function*(e,t){for(let n of e){let e=t(n);null!=e&&(yield e)}}(e,e=>{let n=t(e);return null!=n?[e,n]:null})].sort((e,t)=>n(e[1],t[1])).map(([e])=>e)}},15459:(e,t,n)=>{n.d(t,{N_:()=>r,QV:()=>o,zs:()=>a});var i=n(89136);function r(e,t,{stylingDirectives:n,repo:r,refInfo:a,path:o}){let{extent_utf16:s,ident_utf16:l}=e,c=new i.AP({kind:e.kind,fullyQualifiedName:e.fully_qualified_name,name:e.name,extent:{start:{line:s.start.line_number,column:s.start.utf16_col},end:{line:s.end.line_number,column:s.end.utf16_col}},ident:{start:{line:l.start.line_number,column:l.start.utf16_col},end:{line:l.end.line_number,column:l.end.utf16_col}},source:i.u.BLACKBIRD_ANALYSIS});return c.setSnippet(void 0,n?.[l.start.line_number],t,void 0),c.setFileInfo(r,a,o),c}function a(e,{symbol:t,refInfo:n,repo:r,path:a,backend:o}){let s=e.ident?.start?.character,l=e.ident?.end?.character??e.ident?.start?.character,c={start:{line:e.ident.start.line,column:s?s-e.leadingWhitespace:0},end:{line:e.ident?.end?.line??e.ident.start.line,column:l?l-e.leadingWhitespace:0}},d=e.extent?.start?.character,u=e.extent?.end?.character??e.extent?.start?.character,h={start:{line:e.extent.start.line,column:d||0},end:{line:e.extent.end?.line??e.extent.start.line,column:u||0}},m=new i.AP({ident:c,extent:h,kind:e.symbolKind,name:t,fullyQualifiedName:t,source:"search"===o?i.u.BLACKBIRD_SEARCH:i.u.ALEPH_PRECISE});if(e.local)m.setFileInfo(r,n,a);else if(e.commitOid&&e.path){let t=n;e.commitOid!==n.currentOid&&(t={name:"",listCacheKey:e.commitOid,currentOid:e.commitOid,canEdit:!1}),m.setFileInfo(e.repo??r,t,e.path)}let p=Array(e.leadingWhitespace).fill(" ").join("")+(e.firstLine||"");return m.setSnippet(e.highlightedText,void 0,p,e.leadingWhitespace),m}function o(e,{refInfo:t,path:n,repo:r,backend:a}){let o=t,s=n;!e.local&&e.commitOid&&e.path&&(o=t,s=e.path,e.commitOid!==t.currentOid&&(o={name:"",listCacheKey:e.commitOid,currentOid:e.commitOid,canEdit:!1}));let l=e.ident.start.character,c=e.ident.end?.character,d=new i.BW({repo:r,refInfo:o,path:s,ident:{start:{line:e.ident.start.line,column:l?l-e.leadingWhitespace:0},end:{line:e.ident.end?.line||e.ident.start.line,column:c?c-e.leadingWhitespace:0}},source:"search"===a?i.u.BLACKBIRD_SEARCH:i.u.ALEPH_PRECISE}),u=Array(e.leadingWhitespace).fill(" ").join("")+(e.firstLine||"");return d.setSnippet(e.highlightedText,void 0,u,e.leadingWhitespace),d}},17363:(e,t,n)=>{n.d(t,{KY:()=>r.KY,Kv:()=>r.Kv,Op:()=>r.Op,tz:()=>a.tz,v0:()=>i.v0});var i=n(89136),r=n(14195),a=n(89024);n(15459)},18752:(e,t,n)=>{n.d(t,{f:()=>o,g:()=>a});var i=n(96540);let r="react_blob_view_scroll_line_into_view";function a(e){let t=(0,i.useRef)(e);(0,i.useEffect)(()=>{t.current=e},[e]),(0,i.useEffect)(()=>{let e=e=>t.current(e.detail);return window.addEventListener(r,e),()=>{window.removeEventListener(r,e)}},[])}function o(e){window.dispatchEvent(new CustomEvent(r,{detail:e}))}},20265:(e,t,n)=>{n.d(t,{f:()=>o});var i=n(74848),r=n(69726),a=n(87448);let o=()=>(0,i.jsx)(a.az,{sx:{display:"flex",flexDirection:"column",alignItems:"center",py:3},children:(0,i.jsx)(r.A,{"aria-label":"Loading"})});try{o.displayName||(o.displayName="LoadingFallback")}catch{}},23657:(e,t,n)=>{n.d(t,{Cb:()=>h,FQ:()=>p,Hh:()=>v,JB:()=>g,Ku:()=>c,Pg:()=>N,UG:()=>b,Ym:()=>y,fn:()=>_,iI:()=>x,j0:()=>l,mM:()=>f,q5:()=>w,rl:()=>j,y_:()=>m});var i=n(53419),r=n(25407),a=n(88934),o=n(96540),s=n(25641);let l="The name of this space is too close to another existing space. Please modify the name and try again.",c="https://github.com/mcp/github/github-mcp-server",d="[a-zA-Z0-9-_]+",u="[0-9]+";function h(e){let{id:t,owner:n}=e;return`${s.VR}/${n}/${t}`}function m(){let e=(0,a.zy)().pathname;return(0,o.useMemo)(()=>e===s.VR||e===`${s.VR}/`,[e])}function p(e=!1){let t=(0,a.zy)().pathname;return(0,o.useMemo)(()=>(function(e,t=!1){let n=`${s.VR}/${d}/${u}`,i=RegExp(`^${n}${t?"(/edit)?":""}$`);return!!e.match(i)})(t,e),[e,t])}function f(){let e=m(),t=p();return e||t}function x(){let e=(0,a.zy)().pathname;return(0,o.useMemo)(()=>{let t=e.match(RegExp(`${s.VR}/(${d})/(${u})`));if(t){let[,e,n]=t;if(e&&n){let t=parseInt(n,10);if(!isNaN(t))return{id:t,owner:e}}}return null},[e])}function y(e,t){return e===t||null!==e&&null!==t&&e.id===t.id&&e.owner===t.owner}function b(e,t){return e.id===t.id&&e.owner===t.owner}function g(e,t){if(t)return e?.find(e=>b(e,t))}function _(e){return e?`${s.VR}/${e.owner}/${e.id}`:s.VR}function j(e,t,n=!1){let i,r=t.indexOf("/");if(-1!==r&&0!==r){let n=t.slice(0,r),a=t.slice(r+1);i=e===n?`org:${e} ${a}`:`org:${n} ${a} visibility:public`}else i=`org:${e} ${t}`;return`${i} in:name archived:false ${n?"fork:true":""}`.trim().replace(/\s+/g," ")}function v(e){return(e?.sizePercentage??0)>100}function w(e){let t=e.filePath.split("/"),n=t.pop(),i=[e.nwo,...t].join("/"),a=e.nwo.split("/"),o=e.sha;return{filePath:i,fileName:n,fileUrl:e.fileExists&&e.sha?(0,r.IO9)({repo:{ownerLogin:a[0],name:a[1]},commitish:e.sha,action:"blob",path:e.filePath}):void 0,sha:o}}function N(e,t){let n={...e.reduce((e,t)=>(e[t.type]=(e[t.type]||0)+1,e),{}),source:t};(0,i.BI)("copilot-spaces.resources-added",n)}},25556:(e,t,n)=>{n.d(t,{m:()=>f});var i=n(74848),r=n(11683),a=n(96540),o=n(56149),s=n(87448),l=n(34164);let c=n(38267).Ay.span.withConfig({displayName:"ControlledTooltip__TooltipBase",componentId:"sc-a45d872d-0"})(["&::after{position:absolute;z-index:1000000;display:none;padding:0.5em 0.75em;font:normal normal 11px/1.5 ",";-webkit-font-smoothing:subpixel-antialiased;color:",";text-align:center;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-wrap:break-word;white-space:pre;pointer-events:none;content:attr(data-visible-text);background:",";border-radius:",";opacity:0;}@keyframes tooltip-appear{from{opacity:0;}to{opacity:1;}}&.tooltipped-open,&:hover,&:active,&:focus{&::after{display:inline-block;text-decoration:none;animation-name:tooltip-appear;animation-duration:0.1s;animation-fill-mode:forwards;animation-timing-function:ease-in;animation-delay:0s;}}&.tooltipped-no-delay.tooltipped-open,&.tooltipped-no-delay:hover,&.tooltipped-no-delay:active,&.tooltipped-no-delay:focus{&::after{animation-delay:0s;}}&.tooltipped-s,&.tooltipped-se,&.tooltipped-sw{&::after{top:100%;right:50%;margin-top:6px;}}&.tooltipped-se{&::after{right:auto;left:50%;margin-left:-",";}}&.tooltipped-sw::after{margin-right:-",";}&.tooltipped-n,&.tooltipped-ne,&.tooltipped-nw{&::after{right:50%;bottom:100%;margin-bottom:6px;}}&.tooltipped-ne{&::after{right:auto;left:50%;margin-left:-",";}}&.tooltipped-nw::after{margin-right:-",";}&.tooltipped-s::after,&.tooltipped-n::after{transform:translateX(50%);}&.tooltipped-w{&::after{right:100%;bottom:50%;margin-right:6px;transform:translateY(50%);}}&.tooltipped-e{&::after{bottom:50%;left:100%;margin-left:6px;transform:translateY(50%);}}&.tooltipped-align-right-2::after{right:0;margin-right:0;}&.tooltipped-align-left-2::after{left:0;margin-left:0;}",";"],(0,s.yB)("fonts.normal"),(0,s.yB)("colors.fg.onEmphasis"),(0,s.yB)("colors.neutral.emphasisPlus"),(0,s.yB)("radii.2"),(0,s.yB)("space.3"),(0,s.yB)("space.3"),(0,s.yB)("space.3"),(0,s.yB)("space.3"),s.sx),d=()=>()=>void 0,u=()=>!1,h=()=>!0,m=(0,a.forwardRef)(function({direction:e="n",className:t,text:n,noDelay:r,align:s,wrap:m,open:p=!1,portalProps:f={},...x},y){let b=(0,a.useSyncExternalStore)(d,h,u),g=(0,l.$)(t,`tooltipped-${e}`,s&&`tooltipped-align-${s}-2`,r&&"tooltipped-no-delay",m&&"tooltipped-multiline",p&&"tooltipped-open");return b?(0,i.jsx)(o.ZL,{...f,children:(0,i.jsx)(c,{ref:y,role:"tooltip","aria-label":n,"data-visible-text":n||x["aria-label"],...x,sx:{position:"fixed",zIndex:1,...x.sx},className:g})}):null});try{m.displayName||(m.displayName="ControlledTooltip")}catch{}var p=n(65787);let f=(0,a.forwardRef)(function({contentRef:e,open:t,anchoredPositionAlignment:n,anchorSide:o,anchorOffset:s,alignmentOffset:l,allowOutOfBounds:c,...d},u){let h=(0,a.useRef)(null);(0,a.useImperativeHandle)(u,()=>h.current);let f=(0,a.useRef)({left:0,top:0}),x=(0,a.useSyncExternalStore)((0,a.useCallback)(n=>{if(!h.current||!e.current||!t)return()=>void 0;let i=(0,p.U)(e.current);return i?.addEventListener("scroll",n),()=>{i?.removeEventListener("scroll",n)}},[e,t]),(0,a.useCallback)(()=>{if(!h.current||!e.current)return f.current;let t=(0,r.uG)(h.current,e.current,{align:n??"center",side:o??"outside-top",alignmentOffset:l??0,anchorOffset:s??0,allowOutOfBounds:c});return(t.left!==f.current.left||t.top!==f.current.top)&&(f.current=t),f.current},[e,l,s,n,o,c]),(0,a.useCallback)(()=>f.current,[]));return(0,i.jsx)(m,{...d,ref:h,open:t,style:{position:"absolute",...x,...d.style}})});try{f.displayName||(f.displayName="PortalTooltip")}catch{}},27942:(e,t,n)=>{n.d(t,{a:()=>a,t:()=>o});var i=n(74848),r=n(87448);let a="find-result-marks-container";function o(){return(0,i.jsx)(r.az,{sx:{position:"fixed",top:0,right:0,height:"100%",width:"15px",transition:"transform 0.3s","&:hover":{transform:"scaleX(1.5)"},zIndex:1},id:a})}try{o.displayName||(o.displayName="ScrollMarksContainer")}catch{}},29731:(e,t,n)=>{n.d(t,{G:()=>i});let i=e=>({})},31971:(e,t,n)=>{n.d(t,{M:()=>i});function i(e){switch(e.type){case"repository":return{repository_id:e.repositoryId};case"github_file":return{repository_id:e.repositoryId,file_path:e.filePath,sha:e.sha};case"free_text":return{text:e.text,name:e.name};case"github_issue":case"github_pull_request":return{repository_id:e.repositoryId,number:e.number};case"uploaded_text_file":return{name:e.name};case"media_content":return{media_type:e.mediaType,name:e.name,url:e.url,height:e.height,width:e.width};default:throw Error("Unsupported resource")}}},34535:(e,t,n)=>{n.d(t,{Z:()=>r});var i=n(96540);function r({focusRowRef:e,mouseRowRef:t}){let[n,r]=i.useState(!1);return i.useEffect(()=>{if(e.current&&t.current){let n=()=>{let t=e.current?.querySelector(".PRIVATE_TreeView-item-content-text");t?.scrollWidth!==t?.offsetWidth&&r(!0)};e.current.onfocus=()=>{n()},e.current.onblur=()=>{r(!1)},t.current.onmouseenter=()=>{n()},t.current.onmouseleave=()=>{r(!1)}}},[e,t]),n}},39803:(e,t,n)=>{n.d(t,{Q:()=>d,w:()=>m});var i=n(74848),r=n(98755),a=n(25407),o=n(66108),s=n(41462),l=n(87448),c=n(96540);function d({id:e="breadcrumb",fileNameId:t,path:n,repo:a,commitish:o,isFolder:d,fontSize:f,showCopyPathButton:x}){let{fileName:y,segments:b}=(0,c.useMemo)(()=>(function(e){let t=e.split("/");return{fileName:t.pop(),segments:t.map((e,n)=>({directoryName:e,directoryPath:t.slice(0,n+1).join("/")}))}})(n),[n]),g=!n,_=d&&"/"===n;return(0,i.jsxs)(l.az,{sx:{display:"flex",flexDirection:"row",fontSize:f??2,minWidth:0,flexShrink:1,flexWrap:"wrap",maxWidth:"100%",alignItems:"center"},children:[(0,i.jsxs)(l.az,{as:"nav","data-testid":"breadcrumbs","aria-labelledby":`${e}-heading`,id:e,sx:{maxWidth:"100%"},children:[(0,i.jsx)(s.W,{id:`${e}-heading`,as:"h2",text:"Breadcrumbs"}),(0,i.jsxs)(l.az,{as:"ol",sx:{maxWidth:"100%",listStyle:"none",display:"inline-block"},children:[(0,i.jsxs)(l.az,{as:"li",sx:{display:"inline-block",maxWidth:"100%"},children:[(0,i.jsx)(u,{repo:a,commitish:o}),_&&(0,i.jsx)(s.W,{as:"h1",text:a.name})]}),b.map(({directoryName:e,directoryPath:t})=>(0,i.jsxs)(l.az,{as:"li",sx:{display:"inline-block",maxWidth:"100%"},children:[(0,i.jsx)(m,{fontSize:f}),e?(0,i.jsx)(h,{path:t,directoryName:e,repo:a,commitish:o}):null]},t))]})]}),y&&(0,i.jsxs)(l.az,{"data-testid":"breadcrumbs-filename",sx:{display:"inline-block",maxWidth:"100%"},children:[(0,i.jsx)(m,{fontSize:f}),(0,i.jsx)(p,{value:y,id:t,fontSize:f}),!g&&d&&(0,i.jsx)(m,{})]},y),x&&(0,i.jsx)(r.T,{ariaLabel:"Copy path",textToCopy:n,tooltipProps:{direction:"nw"},size:"small",className:"ml-2"})]})}function u({repo:e,commitish:t}){return(0,i.jsx)(l.N_,{as:o.N,sx:{fontWeight:"bold"},to:(0,a.IO9)({repo:e,commitish:t,action:"tree"}),"data-testid":"breadcrumbs-repo-link",reloadDocument:!0,children:e.name})}function h({directoryName:e,path:t,repo:n,commitish:r}){return(0,i.jsx)(l.N_,{as:o.N,to:(0,a.IO9)({repo:n,commitish:r,path:t,action:"tree"}),sx:{fontWeight:400},children:e})}function m({fontSize:e}){return(0,i.jsx)(l.EY,{sx:{px:1,fontWeight:400,color:"fg.muted",fontSize:e??2},"aria-hidden":"true",children:"/"})}function p({value:e,id:t,fontSize:n}){return(0,i.jsx)(l.DZ,{as:"h1",tabIndex:-1,sx:{fontWeight:600,display:"inline-block",maxWidth:"100%",fontSize:n??2},id:t,children:e})}try{d.displayName||(d.displayName="Breadcrumb")}catch{}try{u.displayName||(u.displayName="RepoLink")}catch{}try{h.displayName||(h.displayName="DirectoryLink")}catch{}try{m.displayName||(m.displayName="Separator")}catch{}try{p.displayName||(p.displayName="FileName")}catch{}},40023:(e,t,n)=>{n.d(t,{Z:()=>s});var i=n(74848),r=n(87448),a=n(34164);let o={Box:"Panel-module__Box--lC3LD"},s=({children:e,sx:t,className:n,...s})=>(0,i.jsx)(r.az,{sx:t,className:(0,a.$)(o.Box,n),...s,children:e});try{s.displayName||(s.displayName="Panel")}catch{}},44956:(e,t,n)=>{n.d(t,{m:()=>o});var i=n(74848),r=n(21373);let a={footerContainer:"SpaceDialogFooter-module__footerContainer--J2LGP"};function o({onSave:e,onCancel:t,saveButtonText:n,isLoading:o=!1,loadingAnnouncement:s="",disabled:l=!1}){return(0,i.jsxs)("div",{className:a.footerContainer,children:[(0,i.jsx)(r.Q,{variant:"default",onClick:t,children:"Cancel"}),(0,i.jsx)(r.Q,{variant:"primary",loading:o,loadingAnnouncement:s,onClick:e,disabled:l,children:n})]})}try{o.displayName||(o.displayName="SpaceDialogFooter")}catch{}},45385:(e,t,n)=>{n.d(t,{u:()=>o});var i=n(25407),r=n(96379),a=n(96540);function o(e,t,n,o){let[s,l]=(0,a.useState)({loading:!0}),c=t&&e&&n&&o?(0,i.IO9)({repo:{name:t,ownerLogin:e},commitish:n,action:"file-contributors",path:o}):null;return(0,a.useEffect)(()=>{if(!c)return;let e=!1;return(async()=>{l({loading:!0});let t=await (0,r.lS)(c);if(!e)try{t.ok?l({contributors:await t.json()}):l({error:!0})}catch{l({error:!0})}})(),function(){e=!0}},[c]),s}},54030:(e,t,n)=>{n.d(t,{o:()=>u});var i=n(5225),r=n(78314),a=n(25407),o=n(96379),s=n(96540);async function l(e){let t=await (0,o.lS)(e);return t.ok?await t.json():void 0}let c=new Map,d=(0,i.A)(l,{cache:c});function u(e,t,n){let i=(0,r.t)(),[o,l]=(0,s.useState)({list:[],directories:[],loading:!0}),c=(0,a.ClY)({repo:i,commitOid:e,includeDirectories:!n});return(0,s.useEffect)(()=>{let e=!1,n=async()=>{l({list:[],directories:[],loading:!0});let t=await d(c);if(e)return;let n=t?.paths||[],i=t?.directories||[];l({list:n.concat(i).sort(),directories:i,error:!t})};return t&&n(),function(){e=!0}},[c,t,n]),o}},54589:(e,t,n)=>{n.d(t,{X:()=>s});var i=n(74848),r=n(26607),a=n(10242),o=n(84174);let s=({children:e="Preview",feedbackUrl:t,className:n})=>(0,i.jsx)(o.V,{className:n,label:(0,i.jsx)(r.A,{variant:"success",children:e}),link:t?(0,i.jsx)(a.A,{feedbackUrl:t}):void 0});try{s.displayName||(s.displayName="BetaLabel")}catch{}},62138:(e,t,n)=>{n.d(t,{r:()=>o});var i=n(74848),r=n(72511);let a={Flash:"EditingForkBanner-module__Flash--BmTUB"};function o({forkName:e,forkOwner:t}){return(0,i.jsxs)(r.A,{"aria-live":"polite",className:a.Flash,children:["You\u2019re making changes in a project you don\u2019t have write access to. Submitting a change will write it to a new branch in your fork ",(0,i.jsx)("b",{children:`${t}/${e}`}),", so you can send a pull request."]})}try{o.displayName||(o.displayName="EditingForkBanner")}catch{}},64642:(e,t,n)=>{n.d(t,{j:()=>o});var i=n(5225),r=n(91385);let a=(0,i.A)(r.fN);function o({data:e}){let{query:t,baseList:n,startTime:i}=e,o=t.replaceAll("\\","");return{query:t,list:n.filter(e=>{var t,n;return t=e,""===(n=o)||(0,r.qA)(n,t)&&a(n,t)>0}).sort((e,t)=>a(o,t)-a(o,e)),baseCount:n.length,startTime:i}}},65787:(e,t,n)=>{n.d(t,{U:()=>a});let i=e=>{let t=getComputedStyle(e,null);return["overflow","overflow-y","overflow-x"].some(e=>{let n=t.getPropertyValue(e);return"auto"===n||"scroll"===n})},r=(e,t)=>e&&null!==e.parentNode?r(e.parentNode,t.concat([e])):t;function a(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(let t of r(e.parentNode,[]))if((t instanceof HTMLElement||t instanceof SVGElement)&&i(t))return t;return document.scrollingElement||document.documentElement}}},66561:(e,t,n)=>{n.d(t,{E:()=>g});var i=n(74848),r=n(78314),a=n(1868),o=n(29731),s=n(30459),l=n(96379),c=n(38621),d=n(73077),u=n(31604),h=n(29295),m=n(87448),p=n(96540),f=n(35898);let x={PopoverContent:"CopilotPopover-module__PopoverContent--vIHIX"},y={ORG_ADMIN:`For an organization, developers writing less boilerplate code means more productivity, while learning new technologies means delivering better customers solutions. Try it in Codespaces or your file editor.`,ORG_MEMBER:`We noticed that you're personally paying for GitHub Copilot. Instead, ask your organization admin to purchase the business version of GitHub Copilot.`,STANDARD:`Spend less time creating boilerplate and repetitive code patterns, and more time building great software. Try it in Codespaces or your favorite file editor.`},b=({featureRequestInfo:e,inProgress:t,toggleFeatureRequest:n,requested:r})=>e?.showFeatureRequest?r?(0,i.jsx)(a.c9,{inProgress:t,toggleFeatureRequest:n}):(0,i.jsx)(a.iU,{inProgress:t,toggleFeatureRequest:n,featureName:e?.featureName}):null,g=({view:e,copilotInfo:t,className:n})=>{let{documentationUrl:g,notices:_,userAccess:j}=t??{},{business:v,orgHasCFBAccess:w,userHasCFIAccess:N,userHasOrgs:k,userIsOrgAdmin:C,userIsOrgMember:S,featureRequestInfo:I}=j??{},{codeViewPopover:B}=_??{},{sendClickAnalyticsEvent:T}=(0,s.S)(),L=(0,f.i)(),{isOrgOwned:A,ownerLogin:D}=(0,r.t)(),{inProgress:O,requested:E,dismissed:R,dismissedAt:z,toggleFeatureRequest:F}=(0,a.tV)(I),[P,$]=(0,p.useState)(!1),[M,W]=(0,p.useState)(!1),H=(0,p.useCallback)(()=>$(!0),[$]),V=(0,p.useCallback)(()=>$(!1),[$]),G=(0,p.useCallback)(()=>j&&A&&S&&!C&&(!w||N)?"Your organization can pay for GitHub Copilot":"Code 55% faster with GitHub Copilot",[w,A,j,N,C,S]),U=(t,n)=>{T({category:"copilot_popover_code_view",action:t,label:`ref_cta:${n};ref_loc:code_view_${e}`})},K=()=>{let e=j?.userHasOrgs??!1;T({category:"copilot_popover_code_view",action:`click_to_go_to_copilot_for_${e?"business":"individuals"}_info`,label:"ref_cta:learn_more;ref_loc:code_view"})};return M||!t?null:(0,i.jsx)("div",{className:n,children:(0,i.jsx)(u.T,{onOpen:H,onClose:V,open:P,overlayProps:{role:"dialog",style:{overflow:"inherit"}},focusZoneSettings:{disabled:!0},renderAnchor:t=>(0,i.jsx)(m.$n,{...t,...(0,o.G)("copilot-popover-button"),leadingVisual:c.CopilotIcon,"aria-label":G(),onClick:()=>{$(!P),L&&T({category:"copilot_popover_code_view",action:`click_to_open_popover_${e}`,label:`ref_cta:open_copilot_popover;owner:${D};relationship:${L&&D===L.login?"owner":C?"admin":S?"member":"personal"}`})},size:"small",sx:{color:"fg.default",display:["none","none","none","none","block"]},variant:"invisible"}),children:(0,i.jsx)(h.A,{"aria-label":"GitHub Copilot",open:P,...(0,o.G)("copilot-popover-content"),caret:"top",children:(0,i.jsxs)(h.A.Content,{className:x.PopoverContent,children:[(0,i.jsx)(m.DZ,{as:"h2",sx:{fontSize:1,fontWeight:"bold",pb:3},children:"Code 55% faster with GitHub Copilot"}),(0,i.jsxs)(m.az,{sx:{fontSize:1,fontWeight:"normal",pb:3},children:[(0,i.jsx)("span",{...(0,o.G)("copilot-popover-body-text"),children:(()=>{if(R)return"";if(j&&A){if(C)return y.ORG_ADMIN;else if(S&&N)return y.ORG_MEMBER}return y.STANDARD})()}),R?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("p",{children:["Your request for Copilot Business was declined by an admin on ",z,"."]}),(0,i.jsxs)("p",{className:"mb-0",children:[(0,i.jsx)(m.N_,{...(0,o.G)("contact-admin-link"),"aria-label":"Click this link to contact your admin.",target:"_blank",href:`/orgs/${D}/people?query=role:owner`,onClick:()=>K(),children:"Contact your admin"}),""," for more details around their decision."]})]}):(0,i.jsx)(m.N_,{...(0,o.G)("copilot-popover-content-learn-more"),"aria-label":"Click this link to learn more about copilot. This action opens in a new tab.",target:"_blank",href:g,onClick:()=>K(),sx:{marginLeft:"8px"},children:"Learn more"})]}),(0,i.jsxs)(m.az,{sx:{alignItems:"center",display:"flex",flexDirection:"row"},children:[v||N||A&&(!A||S)?S&&!w&&C?(0,i.jsx)(d.z,{type:"button",href:`/github-copilot/business_signup/organization/payment?org=${D}`,onClick:()=>U("click_to_buy_copilot_for_business","get_github_copilot"),children:"Get GitHub Copilot"}):I&&!R?(0,i.jsx)(b,{requested:E,featureRequestInfo:I,inProgress:O,toggleFeatureRequest:F}):null:k?(0,i.jsx)(d.z,{type:"button",href:"/settings/copilot",onClick:()=>U("click_to_go_to_copilot_settings","get_github_copilot"),children:"Get GitHub Copilot"}):(0,i.jsx)(d.z,{type:"button",href:"/github-copilot/signup",onClick:()=>U("click_to_go_to_copilot_trial_signup","start_a_free_trial"),children:"Start a free trial"}),(0,i.jsx)(m.N_,{...(0,o.G)("copilot-popover-dismiss-button"),onClick:()=>{B&&((0,l.DI)(B.dismissPath,{method:S?"DELETE":"POST"}),(()=>{let t=`${A?"org_":""}code_view_${e}${C?"_org_admin":""}`;T({category:"copilot_popover_code_view",action:"click_to_dismiss_copilot_popover_forever",label:`ref_cta:dont_show_again;ref_loc:${t}`})})(),W(!0))},sx:{cursor:"pointer",fontSize:1,textDecorationLine:"none",marginLeft:R?0:"16px"},children:"Don't show again"})]})]})})})})};try{b.displayName||(b.displayName="FeatureRequest")}catch{}try{g.displayName||(g.displayName="CopilotPopover")}catch{}},70843:(e,t,n)=>{n.d(t,{L:()=>r});var i=n(96540);function r(e){(0,i.useEffect)(()=>{if(!e)return;let t=document.querySelector(".footer");if(t)return t.hidden=!0,()=>{t.hidden=!1}},[e])}},72011:(e,t,n)=>{n.d(t,{A2:()=>h,CT:()=>c,Lr:()=>d,O6:()=>s,dp:()=>l,ee:()=>u});var i=n(25641),r=n(23657),a=n(96379);let o="/github-copilot/chat",s=["copilot-chat","custom-copilots"];function l(e){return e?["copilot-chat","custom-copilot",{id:e.id,owner:e.owner}]:["copilot-chat","custom-copilot",null]}async function c(){let e=await (0,a.lS)(`${o}/custom_copilots`);if(!e.ok)throw Error(`Failed to fetch spaces: ${i.nN[e.status]||i.DW}`);return await e.json()}async function d(e){if(!e||!e.owner)return{status:500,ok:!1,error:"unexpected null custom copilot id or missing owner"};let{owner:t,id:n}=e,r=`${o}/custom_copilots/${t}/${n}`,s=await (0,a.lS)(r);if(!s.ok)return{status:s.status,ok:!1,error:i.nN[s.status]||i.DW};let l=await s.json();return{status:s.status,ok:!0,payload:l}}async function u(e){let t=await (0,a.lS)((0,r.fn)(e),{method:"DELETE"});return t.ok?{status:t.status,ok:!0,payload:null}:t}async function h(e){let t=await (0,a.lS)(`${(0,r.fn)(e)}/settings/visibility`);if(!t.ok)throw Error("Error fetching visibility settings");try{let e=await t.json();return{memberCount:e.member_count&&"number"==typeof e.member_count?e.member_count:null}}catch(e){throw Error(`Error parsing visibility settings: ${e}`)}}},74945:(e,t,n)=>{var i=n(70103),r=n(40548),a=n(74848),o=n(57224),s=n(78314),l=n(35898),c=n(19357),d=n(76648),u=n(94195),h=n(64830),m=n(96540);function p({children:e}){let t=(0,d.B)(),[n]=m.useState(t?.repo),[i]=m.useState(t?.currentUser),r=(0,m.useMemo)(()=>({}),[]);return(0,m.useEffect)(()=>{let e=document.querySelector(".footer");e&&(e.querySelector(".mt-6")?.classList.replace("mt-6","mt-0"),e.querySelector(".border-top")?.classList.remove("border-top"))},[]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("meta",{"data-hydrostats":"publish"}),(0,a.jsx)(u.LB,{initialValue:u.Gy.xxxlarge,children:(0,a.jsx)(o.y,{appName:"react-code-view",category:"",metadata:r,children:(0,a.jsx)(l.Q,{user:i,children:(0,a.jsx)(s.d,{repository:n,children:(0,a.jsx)(h.cp,{children:(0,a.jsx)(c.i,{children:e})})})})})})]})}try{p.displayName||(p.displayName="App")}catch{}var f=n(79739),x=n(12748),y=n(64375),b=n(26619),g=n(31078),_=n(53552),j=n(46209),v=n(80780),w=n(50731),N=n(13364),k=n(19189),C=n(17038),S=n(41617),I=n(53627),B=n(17182),T=n(86131),L=n(70843),A=n(87555),D=n(87448),O=n(70170),E=n(37272),R=n(6665),z=n(14343),F=n(84331),P=n(38621),$=n(10095),M=n(76455);let W={TextInput_Action:"CodeNavSymbolNavigation-module__TextInput_Action--hHTCj"};var H=n(40480);function V({symbolKind:e,showFullSymbol:t}){return e?(0,a.jsxs)(D.az,{sx:{display:"flex",flexDirection:"row",position:"relative",...t?{}:{mr:2}},children:[(0,a.jsx)(D.az,{sx:{backgroundColor:e.plColor,opacity:.1,position:"absolute",borderRadius:5,alignItems:"stretch",display:"flex",width:"100%",height:"100%"}}),(0,a.jsx)(D.az,{sx:{color:e.plColor,borderRadius:5,fontWeight:600,...t?{fontSize:"small",px:2,py:"1px",mt:"2px"}:{fontSize:"smaller",px:1,py:"1px"}},children:t?e.fullName:e.shortName})]}):null}try{V.displayName||(V.displayName="SymbolIndicator")}catch{}let G=m.memo(function({treeSymbols:e,onTreeSymbolSelect:t}){let n=!e.some(e=>e.isParent||e.children.length>0);return(0,a.jsx)(D.az,{id:"filter-results",sx:{mb:-2,overflowY:"auto",maxHeight:"calc(100vh - 237px)",pl:3,pb:2,pt:1},children:(0,a.jsx)(H.G,{"aria-label":"Code Navigation",flat:n,children:e.map((e,n)=>(0,a.jsx)(K,{id:`${n}${e.symbol.name}`,symbol:e,depth:e.isParent?1:2,onSelect:t},`${n}${e.symbol.name}`))})})});function U({symbol:e}){return(0,a.jsxs)(D.az,{sx:{display:"flex"},children:[(0,a.jsx)(V,{symbolKind:e.symbol.kind})," ",(0,a.jsx)(D.PA,{title:e.symbol.name,sx:{maxWidth:180,display:"block"},children:(0,a.jsx)("span",{children:e.symbol.name})})]})}function K({symbol:e,depth:t,onSelect:n,id:i}){let[r,o]=(0,m.useState)(t<=7);return(0,a.jsxs)(H.G.Item,{onSelect:()=>n(e.symbol),expanded:r,onExpandedChange:()=>o(!r),id:i,children:[(0,a.jsx)(U,{symbol:e}),e.isParent&&e.children.length>0&&(0,a.jsx)(H.G.SubTree,{children:e.children.map((e,i)=>(0,a.jsx)(K,{symbol:e,depth:e.isParent?t+1:t,onSelect:n,id:`${i}${e.symbol.name}`},`${i}${e.symbol.name}`))})]})}try{G.displayName||(G.displayName="CodeNavSymbolTree")}catch{}try{U.displayName||(U.displayName="CodeNavTreeContent")}catch{}try{K.displayName||(K.displayName="CodeNavTreeItem")}catch{}var q=n(4559),Y=n(11683),Q=n(45800),X=n(38077);let Z=m.memo(function({symbol:e,filterText:t,onSelect:n,focused:i,index:r}){return(0,a.jsx)(D.lF.Item,{role:"option",id:`jump-to-item-${r}`,"aria-selected":i,sx:{minWidth:0,...i?{backgroundColor:"var(--bgColor-muted, var(--color-canvas-subtle)) !important"}:{}},onSelect:()=>n(e),children:(0,a.jsx)(D.N_,{href:e.href(),sx:{":hover":{textDecoration:"none"}},children:(0,a.jsxs)("div",{style:{display:"flex"},children:[(0,a.jsx)(V,{symbolKind:e.kind})," ",(0,a.jsx)("div",{style:{display:"flex",minWidth:0,alignItems:"flex-end"},children:(0,a.jsx)(X.z,{search:t,text:e.name,overflowWidth:175,hideOverflow:!0},e.fullyQualifiedName)})]})})})});try{Z.displayName||(Z.displayName="JumpToItem")}catch{}function J(e){return(0,a.jsx)(ee,{...e})}function ee({codeSymbols:e,filterText:t,onSelect:n,focusedIndex:i}){let r=(0,m.useRef)(e.length),o=(0,m.useRef)(""),{containerRef:s}=(0,Q.G)({bindKeys:Y.z0.ArrowVertical|Y.z0.HomeAndEnd});return(0,m.useEffect)(()=>{e.length===r.current&&(o.current+="\u200B");let t=1===e.length?"symbol":"symbols";(0,q.i)(`${e.length} ${t} found${o.current}`),r.current=e.length},[e]),(0,a.jsx)(D.lF,{ref:s,role:"listbox",id:"filter-results","aria-orientation":"vertical",sx:{maxHeight:"68vh",overflowY:"auto"},children:e.map((e,r)=>{let{name:o,lineNumber:s}=e;return(0,a.jsx)(Z,{symbol:e,filterText:t,onSelect:n,focused:r===i,index:r},`${o}_${s}`)})})}try{J.displayName||(J.displayName="JumpToItemList")}catch{}try{ee.displayName||(ee.displayName="FullJumpToItemList")}catch{}var et=n(25407),en=n(57352);function ei({filterText:e,isFindInFile:t}){let[n,i]=(0,m.useState)(t?"No matches found":"No symbols found"),r=(0,s.t)(),o=(0,m.useRef)(!0);return(0,m.useEffect)(()=>{if(o.current){o.current=!1;return}i(`${n}\u200B`)},[e]),(0,a.jsxs)(D.az,{sx:{justifyContent:"center",alignItems:"center",display:"flex",flexDirection:"column",pb:2},children:[""===e&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(D.az,{sx:{bg:"canvas.subtle",borderRadius:6,p:"16px"},children:(0,a.jsxs)(D.az,{sx:{textAlign:"center"},children:[(0,a.jsx)(D.DZ,{as:"h3",sx:{fontSize:0,marginBottom:"4px"},children:"Symbol outline not available for this file"}),(0,a.jsx)(D.az,{sx:{justifyContent:"center",alignItems:"center",display:"flex",fontSize:"12px",color:"fg.muted"},children:"To inspect a symbol, try clicking on the symbol directly in the code view."})]})}),(0,a.jsxs)(D.az,{sx:{mt:"8px",fontSize:0,textAlign:"center",color:"fg.muted"},children:[" ","Code navigation supports a limited number of languages."," ",(0,a.jsx)(en.A,{inline:!0,href:"https://docs.github.com/repositories/working-with-files/using-files/navigating-code-on-github",children:"See which languages are supported."})]})]}),e&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)($.A,{icon:P.SearchIcon,size:24}),(0,a.jsx)(D.EY,{as:"h3",sx:{textAlign:"center",fontWeight:600,fontSize:3,py:2},role:"alert","aria-relevant":"all",children:n})]}),e&&(0,a.jsxs)(D.EY,{id:"filter-zero-state",sx:{textAlign:"center",px:3,mt:2,fontSize:0,color:"fg.subtle"},children:["No lines in this file contain that string.",(0,a.jsx)("br",{}),"Search in"," ",(0,a.jsxs)(en.A,{href:(0,et.Y8Y)({owner:r.ownerLogin,repo:r.name,searchTerm:e}),inline:!0,children:[r.ownerLogin,"/",r.name]})," ","or"," ",(0,a.jsx)(en.A,{href:(0,et.GGt)({searchTerm:e}),inline:!0,children:"all of GitHub"})]})]})}try{ei.displayName||(ei.displayName="SymbolZeroState")}catch{}let er="symbols-pane-header";function ea({codeSymbols:e,onSymbolSelect:t,treeSymbols:n,autoFocusSearch:i,onClose:r}){let[o,s]=(0,m.useState)(""),[l,c]=(0,m.useState)(e);return(0,m.useEffect)(()=>{if(""===o)return void c(e);c(function(e,t){let n=e.replace(/\s/g,"");return(0,z.d)(t,e=>{let t=(0,F.dt)(e.name,n);return t>0?{score:t,text:e.name}:null},F.UD)}(o,e))},[o,e]),(0,a.jsx)(eo,{treeSymbols:n,codeSymbols:l,filterText:o,setFilterText:s,onSymbolSelect:t,autoFocusSearch:i,onClose:r})}function eo({codeSymbols:e,setFilterText:t,filterText:n,onSymbolSelect:i,treeSymbols:r,autoFocusSearch:o,onClose:s}){let l=e?.length>0,c=r.length>0,d=l||c,[u,h]=(0,m.useState)(-1),{sendRepoKeyDownEvent:p}=(0,R.T)(),f=(0,m.useRef)(null),x=!c||""!==n;(0,m.useEffect)(()=>{o&&f.current?.focus()},[o]),(0,M.Gp)(()=>{f.current?.focus()});let y=(0,m.useMemo)(()=>(0,O.s)(()=>{p("BLOB_SYMBOLS_MENU.FILTER_SYMBOLS")},400),[p]);return(0,a.jsxs)(D.az,{sx:{py:2,px:3},"aria-labelledby":er,children:[(0,a.jsxs)(D.az,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between"},children:[(0,a.jsx)(D.az,{as:"h2",sx:{fontSize:1,order:1,display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",fontWeight:600},id:er,tabIndex:-1,children:"Symbols"}),(0,a.jsx)(D.K0,{"aria-label":"Close symbols",tooltipDirection:"w","data-hotkey":"Escape",icon:P.XIcon,sx:{order:3,color:"fg.default",mr:-2},onClick:s,variant:"invisible"})]}),d&&(0,a.jsx)(D.az,{sx:{fontSize:0,color:"fg.muted",pt:2},children:"Find definitions and references for functions and other symbols in this file by clicking a symbol below or in the code."}),(l||""!==n)&&(0,a.jsx)(D.ks,{block:!0,leadingVisual:()=>(0,a.jsx)($.A,{"aria-hidden":"true",icon:P.FilterIcon}),ref:f,trailingAction:n?(0,a.jsx)(D.ks.Action,{onClick:()=>{t(""),h(-1)},icon:P.XCircleFillIcon,"aria-label":"Clear input","data-testid":"clear-search",className:W.TextInput_Action}):(0,a.jsx)(a.Fragment,{}),trailingVisual:n?void 0:()=>(0,a.jsx)(E.E,{children:(0,a.jsx)(D.az,{sx:{mr:"6px"},children:(0,a.jsx)("kbd",{children:"r"})})}),sx:{mt:2,borderRadius:2},placeholder:"Filter symbols",value:n,name:"Filter symbols","aria-label":"Filter symbols","aria-controls":!l&&x?"filter-zero-state":"filter-results","aria-expanded":"true","aria-autocomplete":"list","aria-activedescendant":-1===u?void 0:`jump-to-item-${u}`,onKeyDown:t=>{"ArrowDown"===t.key||("N"===t.key||"n"===t.key)&&t.ctrlKey?h(Math.min(u+1,e.length-1)):"ArrowUp"===t.key||("P"===t.key||"p"===t.key)&&t.ctrlKey?h(Math.max(u-1,0)):"Enter"===t.key&&e[u]?i(e[u]):"Escape"===t.key&&s()},role:"combobox",onChange:e=>{t(e.target.value),y(),h(-1)}}),!x&&(0,a.jsx)(D.az,{sx:{ml:-3,mb:-2},children:(0,a.jsx)(G,{treeSymbols:r,onTreeSymbolSelect:i})}),l&&x&&(0,a.jsx)(J,{codeSymbols:e,filterText:n,onSelect:i,focusedIndex:u}),!l&&x&&(0,a.jsx)(D.EY,{sx:{display:"flex",alignItems:"center",justifyContent:"center",mt:2},children:(0,a.jsx)(ei,{filterText:n})})]})}try{ea.displayName||(ea.displayName="CodeNavSymbolNavigation")}catch{}try{eo.displayName||(eo.displayName="JumpToActionList")}catch{}var es=n(27942),el=n(6426),ec=n(66561),ed=n(53419),eu=n(71315),eh=n(87613),em=n(70395),ep=n(68239),ef=n(17363),ex=n(27473),ey=n(96459),eb=n(60619),eg=n(29806),e_=n(18752),ej=n(7808),ev=n(4788);function ew({data:e}){let{query:t,lines:n,currentCodeReferences:i}=e;return{ranges:i?(0,ef.KY)(i,n,(0,ef.tz)(t)):(0,ef.Kv)(n,(0,ef.tz)(t)),query:t}}var eN=n(80166);function ek(e){let[t,n]=(0,m.useState)(!1),i=(0,m.useCallback)(e=>{let i=e[e.length-1].intersectionRatio<1;i!==t&&n(i)},[t,n]);return(0,m.useEffect)(()=>{let t=e.current,n=new IntersectionObserver(i,{threshold:[1],rootMargin:"-1px 0px 0px 0px"});return e.current&&n.observe(e.current),()=>{t&&n.unobserve(t)}},[e,i]),t}function eC(){return m.useMemo(()=>({top:"0px",zIndex:4,background:"var(--bgColor-default, var(--color-canvas-default))",position:"sticky"}),[!0])}var eS=n(21067),eI=n(96379);async function eB(e,t,n){if(!(0,eS.M3)())return;let i=new FormData;i.set("tree_view_expanded_preference",null===e?"":e?"true":"false"),i.set("symbols_view_expanded_preference",null===t?"":t?"true":"false"),i.set("code_line_wrap_enabled",null===n?"":n?"true":"false"),(0,eI.DI)("/repos/preferences",{method:"PUT",body:i,headers:{Accept:"application/json"}})}var eT=n(75408);let eL=(0,m.createContext)({findInFileOpen:!1,setFindInFileOpen:()=>void 0});function eA({children:e,searchTerm:t,setSearchTerm:n,isBlame:i}){let r=(0,eT.fY)(i),o=(0,m.useRef)(""),[s,l]=(0,m.useState)(!1),c=(0,m.useCallback)(e=>{e&&""===t&&""!==o.current?n(o.current):e||""===t||(o.current=t,n("")),l(e)},[t,n]),d=(0,m.useMemo)(()=>({findInFileOpen:!r&&s,setFindInFileOpen:c}),[s,c,r]);return(0,a.jsx)(eL.Provider,{value:d,children:e})}function eD(){return(0,m.useContext)(eL)}try{eL.displayName||(eL.displayName="FindInFileOpenContext")}catch{}try{eA.displayName||(eA.displayName="FindInFileOpenProvider")}catch{}let eO={FileRenderer:"FileRenderer",Image:"Image",TooLargeError:"TooLargeError",CSV:"CSV",Markdown:"Markdown",IssueTemplate:"IssueTemplate",Code:"Code"};function eE(){let e=(0,em.A)(),t=(0,eh.O)();if(e.renderedFileInfo&&!e.shortPath&&!t)return eO.FileRenderer;if(e.renderImageOrRaw)if(e.image)return eO.Image;else return eO.TooLargeError;if(e.csv&&!t)return eO.CSV;if(e.richText&&!t)return eO.Markdown;if((e.issueTemplate?.structured&&e.issueTemplate.valid||e.discussionTemplate&&e.discussionTemplate.valid)&&!t&&!e.isPlain)return eO.IssueTemplate;else return eO.Code}function eR(e){throw Error(`Unexpected object: ${e}`)}var ez=n(59775),eF=n(30022);function eP(e){let t=(0,m.useRef)(null);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ez.s,{...e,ref:t}),(0,a.jsx)(eF.A,{containerRef:t})]})}try{eP.displayName||(eP.displayName="MarkdownContent")}catch{}var e$=n(20265),eM=n(88934),eW=n(82075),eH=n(54571);let eV=(0,m.createContext)([]);try{eV.displayName||(eV.displayName="SplitCodeownersErrorsContext")}catch{}var eG=n(96657),eU=n(29110),eK=n(38102),eq=n(94001),eY=n(58150),eQ=n(4446),eX=n(77430),eZ=n(66108),eJ=n(73017),e0=n(88431),e1=n(62935),e2=n(11196),e4=n(51220),e3=n(46996);let e5=[.007,.014,.03,.049,.084,.14,.23,.38,.62,Number.MAX_VALUE],e6={"scale.orange.0":"#ffdfb6","scale.orange.1":"#ffc680","scale.orange.2":"#f0883e","scale.orange.3":"#f0883e","scale.orange.4":"#db6d28","scale.orange.5":"#bd561d","scale.orange.6":"#9b4215","scale.orange.7":"#762d0a","scale.orange.8":"#5a1e02","scale.orange.9":"#3d1300"},e7={RelativeTime:"Blame-module__RelativeTime--Rq9oy"};var e8=n(68657),e9=n(5625);let te=m.forwardRef(tn);function tt({copilotAccessAllowed:e,linesData:t,tabSize:n,onLineNumberClick:i}){let r=(0,m.useRef)(null),o=ta((0,eh.O)(),t);return(0,a.jsx)("div",{className:"d-flex flex-column",style:{tabSize:n},ref:r,"data-hpc":!0,children:o.map((t,n)=>(0,a.jsx)(tr,{...t,index:n,copilotAccessAllowed:e,onLineNumberClick:i},`blame-for-segment-${t.range?.start??t.linesData[0].lineNumber}`))})}function tn({copilotAccessAllowed:e,linesData:t,tabSize:n,materializeAllLines:i,onLineNumberClick:r},o){let s=(0,m.useRef)(null),l=(0,eh.O)(),{screenSize:c}=(0,u.lm)(),[d,h]=(0,m.useState)(0);(0,e0.N)(()=>{h(s.current?.offsetTop??0)},[]);let p=(0,m.useCallback)(e=>{let n=t[e],i=l?.ranges[n.lineNumber];return i&&i.end===i.start?window.innerWidth>u.Gy.medium?31:41:20},[t,l]),f=(0,e4.XW)({count:t.length,overscan:i?Number.MAX_SAFE_INTEGER:100,estimateSize:p,scrollMargin:d}),x=f.getVirtualItems().map(e=>({...t[e.index],virtualOffset:e.start-f.options.scrollMargin}));(0,m.useImperativeHandle)(o,()=>({scrollToTop:()=>{(0,eg.si)(0)||f.scrollToIndex(0,{align:"start"})},scrollToLine:e=>{(0,eg.si)(e)||f.scrollToIndex(e,{align:"center"})}}));let y=ta(l,x);return(0,a.jsx)("div",{style:{"--blame-segments-count":y.length,"--blame-virt-total-size":`${f.getTotalSize()}px`,tabSize:n},className:"virtual-blame-wrapper",ref:s,"data-hpc":!0,children:y.map((t,n)=>{let i=t.linesData[0].virtualOffset??0;return c(0,a.jsxs)("div",{className:"d-flex flex-row",children:[(0,a.jsx)("div",{className:`react-line-numbers ${n.length>1?"":"react-blame-no-line-data"}`,children:(0,a.jsx)(e9.Kn,{codeLineData:e,onClick:r},`line-number-${e.lineNumber}-content-${e.rawText?.substring(0,100)}`)}),(0,a.jsx)("div",{className:`react-code-line ${n.length>1?"":"react-blame-no-line-data"}`,children:(0,a.jsx)(e8.S,{stylingDirectivesLine:e.stylingDirectivesLine,id:`LC${e.lineNumber}`,codeLineData:e,copilotAccessAllowed:i,shouldUseInert:!1},`code-line=${e.lineNumber}-content-${e.rawText?.substring(0,100)}`)})]},`line-pair-${e.lineNumber}`))})]})}let tr=m.memo(function({range:e,commit:t,linesData:n,virtualOffset:i,copilotAccessAllowed:r,onLineNumberClick:o}){return(0,a.jsx)("div",{className:"react-blame-segment-wrapper",style:void 0!==i?{transform:`translateY(${i}px)`,position:"absolute",top:0}:void 0,children:(0,a.jsx)(ti,{range:e,commit:t,linesData:n,copilotAccessAllowed:r,onLineNumberClick:o})})},(e,t)=>e.range===t.range&&e.commit===t.commit&&e.virtualOffset===t.virtualOffset&&(0,e3.A)(e.linesData,t.linesData));function ta(e,t){if(!e)return[{linesData:t}];let n=[],i=null,r=!0;for(let a of t){i||(i={linesData:[]});let t=r?Object.values(e?.ranges??{}).find(e=>e.start<=a.lineNumber&&e.end>=a.lineNumber):e?.ranges[a.lineNumber];t&&(i.range=t,i.commit=e.commits[t.commitOid]),i.linesData.push(a),i.range?.end===a.lineNumber&&(n.push(i),i=null),r=!1}return i&&(n.push(i),i=null),n}let to=m.memo(ts);function ts({range:e,commit:t}){let n=(0,s.t)(),i=new Date(t.committedDate),r=new Date(n.createdAt),o=(0,a.jsx)("div",{className:"timestamp-ago",children:(0,a.jsx)(e1.A,{date:i,tense:"past",className:e7.RelativeTime})});return(0,a.jsxs)("div",{className:"react-blame-for-range d-flex",children:[(0,a.jsx)("div",{"aria-hidden":!0,className:"age-indicator",children:(0,a.jsx)(tc,{commitDate:i,repoCreationDate:r})}),(0,a.jsx)("div",{className:"pt-1 timestamp-wrapper-desktop",children:o}),(0,a.jsx)("div",{className:"author-avatar-wrapper",children:t.authorAvatarUrl&&(0,a.jsx)(eX.r,{src:t.authorAvatarUrl,size:18})}),(0,a.jsx)(D.az,{sx:{verticalAlign:"top",pt:[2,2,"6px"],pb:[2,2,0],minWidth:[0,0,170],flexGrow:[1,1,1]},children:(0,a.jsx)("div",{className:"d-flex",children:(0,a.jsx)(eJ.JR,{html:t.shortMessageHtmlLink,sx:{whiteSpace:"nowrap",ml:2,overflowX:"hidden",textOverflow:"ellipsis",maxWidth:"100%",fontSize:[1,1,0]},"data-hovercard-url":(0,et.fQd)({owner:n.ownerLogin,repo:n.name,commitish:t.oid})})})}),(0,a.jsxs)(D.az,{sx:{display:"flex",alignContent:"flex-start",justifySelf:"flex-end",verticalAlign:"top",pl:2,pt:["2px","2px","1px"],pb:[1,1,0],width:[150,150,34],pr:[2,2,0]},children:[(0,a.jsx)("div",{className:"pt-1 pr-3 timestamp-wrapper-mobile",children:o}),(0,a.jsx)(tl,{range:e,commit:t})]})]})}function tl({range:e,commit:t}){let n=(0,s.t)();if(!e.reblamePath)return null;let i=(0,et.buO)({owner:n.ownerLogin,repo:n.name,commitish:t.firstParentOid,filePath:e.reblamePath}),r=new Intl.DateTimeFormat(void 0,{year:"numeric",month:"short",day:"numeric"}),o=t.oid.slice(0,7),l=r.format(new Date(t.committedDate)),c=`Blame prior to change ${o}, made on ${l}`,d=`reblame-${o}`;return(0,a.jsx)(e2.m,{text:c,type:"label",id:d,children:(0,a.jsx)(eZ.N,{"aria-labelledby":d,to:i,className:"Button Button--iconOnly Button--invisible Button--small",children:(0,a.jsx)(P.VersionsIcon,{})})})}function tc({commitDate:e,repoCreationDate:t}){let n=function(e,t){let{resolvedColorScheme:n}=(0,D.DP)(),i=n?.startsWith("dark"),r=i?e6["scale.orange.9"]:e6["scale.orange.0"];if(e(0,a.jsx)(e9.Kn,{codeLineData:e,onClick:t,ownedCodeSections:n,onLineStickOrUnstick:r,onCollapseToggle:c},`line-number-${e.lineNumber}-content:${e.rawText?.substring(0,100)}`))}),(0,a.jsx)("div",{className:"react-code-lines",children:e.map(e=>(0,a.jsx)(e8.S,{codeLineData:e,codeLineClassName:e.codeLineClassName,stylingDirectivesLine:e.stylingDirectivesLine,id:`LC${e.lineNumber}`,onLineStickOrUnstick:r,setIsCollapsed:c,codeLineToSectionMap:i,copilotAccessAllowed:l,measureRef:void 0,shouldUseInert:!1},`line-data-${e.lineNumber}-content:${e.rawText?.substring(0,100)}`))})]}),1e3===e.length&&(0,a.jsx)(D.az,{sx:{justifyContent:"center",display:"flex"},children:(0,a.jsx)(en.A,{href:u,children:"View remainder of file in raw view"})})]})}try{th.displayName||(th.displayName="CodeLinesSSR")}catch{}try{tm.displayName||(tm.displayName="CodeLinesSSRUnmemoized")}catch{}var tp=n(18666),tf=n(48064),tx=n(57555),ty=n(57472);let tb=m.memo(tg);function tg({linesData:e,onLineNumberClick:t,codeSections:n,nonTruncatedLinesData:i,colorizedLines:r,onLineStickOrUnstick:o,tabSize:s,contentWidth:l,copilotAccessAllowed:c,onCollapseToggle:d}){let u=(0,h.ud)().codeWrappingOption.enabled,{rawBlobUrl:m}=(0,em.A)(),p=[...Array(Math.floor(e.length/tu.kd)+1).keys()];return(0,a.jsxs)(D.az,{className:"react-code-file-contents",role:"presentation","aria-hidden":!0,"data-tab-size":s,"data-paste-markdown-skip":!0,sx:{tabSize:s,isolation:"isolate",position:"relative",width:l,overflow:"auto",maxWidth:u?"100%":"unset"},"data-hpc":!0,children:[(0,a.jsx)("div",{className:"react-line-numbers-no-virtualization",style:{pointerEvents:"auto",position:"relative",zIndex:2},children:p.map(i=>{let r=e.slice(i*tu.kd,Math.min(i*tu.kd+tu.kd,e.length));return(0,a.jsx)("div",{className:"react-no-virtualization-wrapper-lines-ssr",children:r.map(e=>(0,a.jsx)(tx.m,{codeLineData:e,onClick:t,ownedCodeSections:n,onLineStickOrUnstick:o,onCollapseToggle:d},`line-number-${e.lineNumber}`))},`line-number-wrapper-${i}-content:${r[0]?.rawText?.substring(0,100)}`)})}),(0,a.jsxs)("div",{className:"react-code-lines",children:[(0,a.jsx)(tf.R,{linesData:e}),(0,a.jsx)(tp.n,{linesData:e,copilotAccessAllowed:c}),(0,a.jsx)(ty.Bg,{linesData:i,colorizedLines:r}),1e3===e.length&&(0,a.jsx)(D.az,{sx:{justifyContent:"center",display:"flex"},children:(0,a.jsx)(en.A,{href:m,children:"View remainder of file in raw view"})})]})]})}try{tb.displayName||(tb.displayName="CodeLinesSSRNoVirtualization")}catch{}try{tg.displayName||(tg.displayName="CodeLinesSSRNoVirtualizationUnmemoized")}catch{}var t_=n(68340),tj=n(23451);function tv({linesData:e,onCodeNavTokenSelected:t,onLineNumberClick:n,isBlame:i,isCursorVisible:r,isVirtualized:o,textAreaRef:l,shouldRenderOverlay:c,tabSize:d,optionalTestLeftOffsetFunction:u,textSelection:h,onCollapseToggle:p,onLineStickOrUnstick:f,optionalTestTopOffsetFunction:y,additionalTextAreaInstructions:b}){let g,[j,w]=(0,m.useState)(0),[N,k]=(0,m.useState)(0),[C,S]=(0,m.useState)(!1),I=(0,m.useRef)(""),B=(0,m.useRef)(null),T=(0,s.t)(),{refInfo:L,path:A}=(0,_.eu)(),{cursorNavigationHighlightLine:O,expandAndFocusLineContextMenu:E,cursorNavigationEnter:R,searchShortcut:z,cursorNavigationPageDown:F,cursorNavigationPageUp:P}=(0,v.wk)(),$=(0,eM.zy)();(0,m.useEffect)(()=>{w(0),k(0)},[$.key]),(0,m.useEffect)(()=>{function e(e){I.current=e.key}return window.oncontextmenu=function(e){if("ContextMenu"===I.current&&-1===e.button&&document.activeElement?.className.indexOf(eQ.Dp)!==-1)return I.current="",e?.preventDefault(),e?.stopPropagation(),!1},window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e),window.oncontextmenu=null}},[]);let M=i?eT.cH:eT.M_,W=(0,m.useRef)(null),{onEnter:H,updateUrlForLineNumber:V,onPageUp:G,onPageDown:U,currentStartLine:K,currentStartChar:q,currentEndLine:Y,currentEndChar:Q,determineAndSetTextAreaCursorPosition:X,getCorrectLineNumberWithCollapsedSections:Z}=(0,eT.M1)(W,t,u??w,y??k,e,o,i,n,l,d,b,h),J=(0,m.useRef)(!1);(0,m.useEffect)(()=>{J.current=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)},[]);let ee=(0,eG.o)("react-line-numbers"),en=r?{height:`${ee}px`,width:"1.5px",backgroundColor:"fg.default",position:"absolute",visibility:J.current?"hidden":"visible",zIndex:2}:{};return g=K.current===Y.current&&q.current===Q.current?`#L${K.current+1}C${q.current}`:`#${(0,eb.Kn)({start:{line:K.current+1,column:q.current},end:{line:Y.current+1,column:Q.current}})}`,(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(D.az,{"aria-hidden":!0,style:{top:N,left:M+j},sx:en,ref:W,"data-testid":"navigation-cursor",className:"code-navigation-cursor",children:" "}),c&&(0,a.jsx)("div",{style:{top:N+ee,left:M+j,zIndex:2},className:"position-absolute border rounded-2 color-bg-subtle px-3 py-2",children:(0,a.jsxs)(D.EY,{sx:{pointerEvents:"auto"},children:["Code view is read-only."," ",L.canEdit&&(0,a.jsx)(eZ.N,{to:(0,et.Nyd)({owner:T.ownerLogin,repo:T.name,filePath:A,commitish:L.name,hash:g}),children:"Switch to the editor."})]})}),C&&(0,a.jsx)(eQ.Ay,{ref:B,rowBeginId:`LG${Z(K.current)}`,rowBeginNumber:Z(K.current),rowEndNumber:Z(Y.current),rowEndId:`LG${Z(Y.current)}`,openOnLoad:!0,cursorRef:W,onCollapseToggle:p,onLineStickOrUnstick:f,lineData:function(){if(K.current!==Y.current)return null;let t=e[K.current];if(!t)return null;if(t.isStartLine)return t;if(""===t.codeLineClassName)return null;let n=t.codeLineClassName?.split("child-of-line-");if(!n||t.codeLineClassName?.indexOf("child-of-line-")===-1)return null;let i=parseInt(n[n.length-1]?.trim()??"undefined");return i&&!Number.isNaN(i)?e[i-1]&&e[i-1]?.lineNumber===i?e[i-1]:e[(0,eg.N9)(i,e)]:null}(),onMenuClose:function(e,t){S(e),setTimeout(()=>{t&&X(),l?.current?.focus()},300)}}),(0,a.jsx)("button",{hidden:!0,"data-testid":"NavigationCursorEnter","data-hotkey":R.hotkey,onClick:H,"data-hotkey-scope":eg.wQ}),(0,a.jsx)("button",{hidden:!0,"data-testid":"NavigationCursorSetHighlightedLine","data-hotkey":O.hotkey,onClick:V,"data-hotkey-scope":eg.wQ}),(0,a.jsx)("button",{hidden:!0,"data-testid":"NavigationCursorSetHighlightAndExpandMenu","data-hotkey":E.hotkey,onClick:e=>(e.preventDefault(),e.stopPropagation(),S(!0),setTimeout(()=>{B.current?.setAnchor(W.current)},0),!1),"data-hotkey-scope":eg.wQ}),(0,a.jsx)("button",{hidden:!0,"data-testid":"NavigationCursorPageDown","data-hotkey":F.hotkey,onClick:U,"data-hotkey-scope":eg.wQ}),(0,a.jsx)("button",{hidden:!0,"data-testid":"NavigationCursorPageUp","data-hotkey":P.hotkey,onClick:G,"data-hotkey-scope":eg.wQ}),(0,a.jsx)(x._,{buttonFocusId:eg.wQ,buttonHotkey:z.hotkey,onButtonClick:()=>{(0,tj.Z)({retainScrollPosition:!0,returnTarget:l?.current??void 0})},onlyAddHotkeyScopeButton:!0})]})}try{tv.displayName||(tv.displayName="NavigationCursor")}catch{}var tw=n(911),tN=n(15220),tk=n(40961);function tC({onDismiss:e}){let{expandAndFocusLineContextMenu:t,cursorNavigationEnter:n,cursorNavigationHighlightLine:i}=(0,v.wk)();return(0,tk.createPortal)((0,a.jsx)(tN.l,{width:"large","aria-label":"Code Blob Focused Hotkeys",onClose:e,title:"Code Blob Focused Hotkeys",children:(0,a.jsx)("div",{children:(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"p-1",children:["Select the line the cursor is on ",(0,a.jsx)("kbd",{children:i.text})]}),(0,a.jsxs)("div",{className:"p-1",children:["Select the symbol under the cursor ",(0,a.jsx)("kbd",{children:n.text})]}),(0,a.jsxs)("div",{className:"p-1",children:["Move focus to the highlighted line menu ",(0,a.jsx)("kbd",{children:t.text})]})]})})}),document.body)}try{tC.displayName||(tC.displayName="TextAreaHelpDialog")}catch{}function tS({textAreaRef:e,setTextOverlayShouldBeVisible:t,setTextSelection:n,setAdditionalTextAreaInstructions:i,cursorClickStartRef:r,parentRef:o,tabSize:s,plainTextLinesAsString:l,numLines:c,setIsTextAreaFocused:d}){let p=(0,eT.fY)(),f=(0,h.ud)().codeWrappingOption,y=(0,v.V3)(),b=(0,v._y)(),g=(0,eG.o)("react-line-numbers"),[_,j]=(0,m.useState)(!1),{cursorNavigationOpenHelpDialog:w}=(0,v.wk)(),N=(0,D.DP)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("textarea",{id:eg.wQ,"data-testid":eg.wQ,ref:e,onMouseUp:i=>(function(e,t,n,i,r,a,o,s){if(a&&!e.defaultPrevented&&r){if(2===e.button)e.preventDefault(),e.stopPropagation();else if(0===e.button){n(!1);let a=(0,u.nn)(window.innerWidth)l+o.current?.clientHeight){r.current={startX:-2,startY:-2};return}let c=(0,eg.t1)(e.pageY,l,s),d=o.current?.getBoundingClientRect().left||0,h=e.clientX-d-eT.M_,m=!1;(c{t&&t.current&&i({start:t.current.selectionStart,end:t.current.selectionEnd,keyboard:!1,displayStart:m})},0)}}})(i,e,t,n,r,p,o,g),onMouseDown:e=>(function(e,t,n,i,r){if(n&&!e.defaultPrevented&&i){if(2===e.button){e.preventDefault(),e.stopPropagation();return}else if(0===e.button){if(e.ctrlKey){e.preventDefault(),e.stopPropagation();return}let n=(0,u.nn)(window.innerWidth)a+t.current?.clientHeight){i.current={startX:-2,startY:-2};return}let o=(0,eg.t1)(e.pageY,a,r),s=t.current?.getBoundingClientRect().left||0;i.current={startX:e.clientX-s-eT.M_,startY:o}}}})(e,o,p,r,g),"aria-label":"file content","aria-readonly":!0,inputMode:"none",tabIndex:0,"aria-multiline":!0,"aria-haspopup":!1,"data-gramm":"false","data-gramm_editor":"false","data-enable-grammarly":"false",style:{resize:"none",marginTop:-2,paddingLeft:eT.M_,paddingRight:eT.di,display:"hidden",width:"100%",backgroundColor:"unset",boxSizing:"border-box",color:"transparent",position:"absolute",border:"none",tabSize:s,outline:"none",overflowX:"auto",height:g*(c+1),fontSize:"12px",lineHeight:"20px",overflowY:"hidden",overflowWrap:f.enabled?"anywhere":"normal",overscrollBehaviorX:"none",whiteSpace:f.enabled?"pre-wrap":"pre",zIndex:1},value:l,onKeyDown:function(r){y.includes(r.key)||b.includes(r.key)&&(r.getModifierState("Control")||r.getModifierState("Alt")||r.getModifierState("Shift")||r.getModifierState("Meta"))?(" "===r.key&&(r.preventDefault(),r.shiftKey?i(`PageUp${Date.now()}`):i(`PageDown${Date.now()}`)),r.altKey&&r.ctrlKey&&"\u02D9"===r.key&&j(!0),t(!1),setTimeout(()=>{e.current&&n({start:e.current.selectionStart,end:e.current.selectionEnd,keyboard:!0,displayStart:!1})},5)):!r.ctrlKey&&!r.metaKey&&!r.altKey&&!r.shiftKey&&(function(e,t){let n=e.exec(t);return n&&n[0]===t}(/[a-zA-Z0-9-_ ]{1,1}/,r.key)||"Backspace"===r.key||"Enter"===r.key)&&((0,q.i)("Code view is read only."),t(!0),r.preventDefault())},spellCheck:!1,autoCorrect:"off",autoCapitalize:"off",autoComplete:"off","data-ms-editor":"false",onDrop:e=>{let t=e.dataTransfer.getData("Text");try{let e=new URL(t);window.open(e,"_blank")?.focus()}catch{}return!1},onPaste:e=>(e.preventDefault(),!1),onChange:()=>{},className:`react-blob-textarea react-blob-print-hide${N.resolvedColorScheme?.endsWith("contrast")?" select-contrast":""}`,onFocus:()=>{d(!0)}}),_&&(0,a.jsx)(tC,{onDismiss:()=>{j(!1)}}),(0,a.jsx)(x._,{buttonFocusId:eg.wQ,buttonHotkey:w.hotkey,onButtonClick:()=>{j(!0)},onlyAddHotkeyScopeButton:!0})]})}try{tS.displayName||(tS.displayName="TextArea")}catch{}let tI=(0,eW.A)("localStorage");function tB({blobLinesHandle:e,onCodeNavTokenSelected:t,codeSections:n,codeLineToSectionMap:i,validCodeNav:r,onLineStickOrUnstick:o,searchResults:s,focusedSearchResult:l}){let{rawLines:c,colorizedLines:d,stylingDirectives:u,tabSize:p}=(0,em.A)(),f=!!(0,eh.O)(),[x,y]=(0,m.useState)(!1),b=(0,eT.fY)(),g=(0,eG.o)("react-line-numbers"),[j,v]=(0,m.useState)(void 0),[w,N]=(0,m.useState)({start:-1,end:-1,keyboard:!0,displayStart:!1}),[k,C]=(0,m.useState)(""),[S,I]=(0,m.useState)(!1),B=(0,m.useRef)(null),[T,L]=(0,m.useState)(!1),A=(0,m.useRef)({startX:0,startY:0}),{hash:E}=(0,eM.zy)(),{refInfo:R,path:z,copilotAccessAllowed:F}=(0,_.eu)(),P=(0,m.useRef)(null),[$,M]=(0,m.useState)(void 0),[W]=(0,eH.I)(()=>!1,!0,[]),H=(0,m.useRef)(null),V=(0,h.ud)().codeWrappingOption.enabled,G=(0,eU.u)(),U=(0,ep.YP)(),K=(0,m.useCallback)(()=>{v((0,eb.$c)(window.location.hash)?.blobRange)},[]),{findInFileOpen:q,setFindInFileOpen:Y}=eD(),{lines:Q,plainTextLinesAsString:X,nonTruncatedLinesData:Z}=function(e,t,n,i,r){let a=function(e,t,n,i,r){let[a]=(0,eH.I)(()=>e.length,Math.min(e.length,1e3),[e]);return(0,m.useMemo)(()=>Array(a).fill(null).map((e,t)=>t+1).map(a=>{let o,s=t?.[a-1],l=!1,c=!1;for(let e of n?.get(a)??[])e.startLine===a&&(l=!0,o=e),e.endLine===a&&(c=!0);let d=e[a-1]?.replace(/[\n\r]/g,"")??"",u=r&&r.get(a)||[],h=(0,eg.Bn)(u,a,c,n);return{stylingDirectivesLine:s,lineNumber:a,codeLineClassName:h,isStartLine:l,isEndLine:c,ownedSection:o,rawText:d,hiddenUnicode:(0,eq.Y)(d),codeownersLineError:i?.find(e=>e.line===a)}}),[a,t,e,r,n,i])}(e,t,n,i,r),o=(0,eq.bp)(),s=(0,m.useRef)("");(0,eg.Wb)(e=>s.current=function(e){let t=[...e];return t.sort(),t.join(",")}(e));let l=(0,m.useMemo)(()=>(function(e,t){let n=new Set;for(let i=0;i!n.has(e.lineNumber))})(a,n),[a,n,s.current]),c=l.map(e=>o&&e.rawText?(0,eq.TA)(e.rawText):e.rawText).join(` `);return{lines:l,plainTextLinesAsString:c,nonTruncatedLinesData:a}}(c??[],u??null,n??null,(0,m.useContext)(eV),i),J=(0,tu.G)(Z.length)&&d&&0!==d.length,ee=(0,m.useRef)(Q);ee.current=Q,(0,m.useEffect)(()=>{(0,eg.X5)()},[R.currentOid,z]),(0,m.useEffect)(()=>{window.onbeforeprint=()=>y(!0),window.onafterprint=()=>y(!1)},[]),(0,m.useEffect)(()=>{eB(null,null,V)},[]),(0,m.useEffect)(()=>{"true"!==tI.getItem("heardHelpAnnouncement")&&((0,eg.kY)("While the code is focused, press Alt+F1 for a menu of operations.",2e3),tI.setItem("heardHelpAnnouncement","true"))},[]);var et=(0,m.useCallback)(e=>{if(e&&e?.node&&!f){if(!e.node.textContent||e.node.textContent.length<3)return;let n=e.node;!n||!n.hasAttribute||n.hasAttribute("clickadded")||(n.classList.add("pl-token"),n.setAttribute("clickadded","true"),n.addEventListener("click",function(n){let i=n.target.textContent?n.target.textContent:"";t&&e&&(t({selectedText:i,lineNumber:e.lineNumber,offset:e.offset}),q&&Y(!1))}))}},[q,f,Y,t]);let en=!!(0,eh.O)(),ei=(0,eT.fY)();(0,m.useEffect)(()=>{let e;if(en||!r||ei)return;let t=(0,O.s)(t=>{clearTimeout(e),e=setTimeout(()=>{!function(e,t){let n=function(e,t,n){let i,r;if(document.caretPositionFromPoint){let e=document.caretPositionFromPoint(t,n);e&&(i=e.offsetNode,r=e.offset)}else if(document.caretRangeFromPoint){let e=document.caretRangeFromPoint(t,n);e&&(i=e.startContainer,r=e.startOffset)}if(!i||"number"!=typeof r||i.nodeType!==Node.TEXT_NODE||!i.textContent)return null;let a=function(e,t,n){let i,r=null;for(;i=t.exec(e);){if(t.lastIndex===r){(0,eK.N7)(Error("regexp did not advance in findNearestMatch()"));break}r=t.lastIndex;let e=i.index+i[0].length;if(i.index<=n&&n<=e)return[i[0],i.index,e]}return null}(i.textContent,e,r);if(!a)return null;let o=document.createRange();return o.setStart(i,a[1]),o.setEnd(i,a[2]),o}(/\w+[!?]?/g,e.clientX,e.clientY);if(!n)return;let i=n.commonAncestorContainer.parentElement;if(i)for(let e of i.classList){if(["pl-token","pl-c","pl-s","pl-k"].includes(e))return null;let i=n.toString();if(!i||i.match(/\n|\s|[();&.=",]/))return null;let{lineNumber:r,offset:a,node:o}=function(e){let t=e.startContainer,n=e.startOffset;for(;;){let e=t.previousSibling;for(;e;)n+=(e.textContent||"").length,e=e.previousSibling;let i=t.parentElement;if(!i)return{lineNumber:0,offset:0,node:null};if(i.classList.contains("react-file-line"))return{lineNumber:parseInt(i.getAttribute("data-line-number")||"1",10),offset:n,node:t};t=i}}(n);if(0===r&&0===a||!o)return null;return t({lineNumber:r,offset:a,node:o})}}(t,et)},15)},5);return window.addEventListener("mousemove",t),()=>{window.removeEventListener("mousemove",t)}},[et,en,r,ei]);let er=({line:t,column:n})=>{if(t<10)e.current?.scrollToTop();else if(e.current){if(-1===(0,eg.N9)(t,Q)){for(let e of i?.get(t)??[])e&&e.collapsed&&(e.collapsed=!1,(0,eg.ny)(e?.startLine));G()}setTimeout(()=>{let i=(0,eg.N9)(t,ee.current);e.current?.scrollToLine(i,n)},0),U&&!(0,eg.si)(t)&&(o(null,!0),(0,eg.CZ)(U,t,i,o))}};return(0,m.useEffect)(()=>{let e=(0,eb.$c)(E);if(!e.blobRange?.start?.line)return void v(void 0);v(e.blobRange)},[z,E,Q.length]),(0,m.useEffect)(()=>{let e=(0,eb.$c)(E);if(!e.blobRange?.start?.line)return;let t=window.setTimeout(()=>er({line:e.blobRange.start.line}),0);return()=>{window.clearTimeout(t)}},[z,f]),(0,m.useEffect)(()=>{let e=P.current;if(!e||!b)return void M(void 0);M(e.scrollWidth>e.clientWidth?e.scrollWidth:void 0);let t=new ResizeObserver(e=>{for(let{target:t}of e)M(t.scrollWidth>t.clientWidth?t.scrollWidth:void 0)});return t.observe(e),()=>{t.disconnect()}},[b,z]),(0,e_.g)(er),(0,a.jsx)(tw.gt,{searchResults:s,focusedSearchResult:l,children:(0,a.jsxs)(t_.iU,{highlightedLines:j,children:[Q.some(e=>e.hiddenUnicode)&&(0,a.jsx)(eq.om,{}),(0,a.jsx)(D.az,{sx:{display:"flex",flex:1,py:2*!f,flexDirection:"column",justifyContent:"space-between",minWidth:0,position:"relative"},children:(0,a.jsx)(eQ.AG,{children:(0,a.jsx)(eY.eT,{children:(0,a.jsxs)(D.az,{sx:{flex:1,position:"relative",minWidth:0,overflowX:f?"auto":void 0,overflowY:f?"hidden":void 0},ref:B,onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||I(!1)},children:[b&&(0,a.jsx)(D.az,{ref:H,sx:{position:"absolute",width:"100%",overflow:"hidden"},children:(0,a.jsx)(D.az,{sx:{width:$,height:g*Q.length},children:(0,a.jsx)(tv,{linesData:Q,isBlame:!1,onCodeNavTokenSelected:t,onLineNumberClick:K,isCursorVisible:!!S,isVirtualized:!0,textAreaRef:P,onCollapseToggle:G,onLineStickOrUnstick:o,tabSize:p,textSelection:w,shouldRenderOverlay:!!T,additionalTextAreaInstructions:k??""})})}),b&&(0,a.jsx)(tS,{textAreaRef:P,setTextOverlayShouldBeVisible:L,setTextSelection:N,setAdditionalTextAreaInstructions:C,cursorClickStartRef:A,parentRef:B,tabSize:p,plainTextLinesAsString:X,numLines:Q.length,setIsTextAreaFocused:I}),f?W?(0,a.jsx)(tt,{linesData:Q,tabSize:p,copilotAccessAllowed:F,onLineNumberClick:K}):(0,a.jsx)(te,{ref:e,linesData:Q,tabSize:p,copilotAccessAllowed:F,onLineNumberClick:K}):W?J?(0,a.jsx)(tb,{linesData:Q,nonTruncatedLinesData:Z,onLineNumberClick:K,colorizedLines:d,codeSections:n,codeLineToSectionMap:i,onLineStickOrUnstick:o,tabSize:p,contentWidth:$,copilotAccessAllowed:F,onCollapseToggle:G}):(0,a.jsx)(th,{linesData:Q,onLineNumberClick:K,codeSections:n,codeLineToSectionMap:i,onLineStickOrUnstick:o,tabSize:p,contentWidth:$,copilotAccessAllowed:F,onCollapseToggle:G}):J?(0,a.jsx)(tu.P9,{ref:e,linesData:Q,nonTruncatedLinesData:Z,onLineNumberClick:K,colorizedLines:d,codeSections:n,codeLineToSectionMap:i,onLineStickOrUnstick:o,tabSize:p,textAreaRef:P,cursorContainerRef:H,contentWidth:$??P.current?.clientWidth,onCollapseToggle:G,materializeAllLines:x,copilotAccessAllowed:F}):(0,a.jsx)(td.FL,{ref:e,linesData:Q,onLineNumberClick:K,codeSections:n,codeLineToSectionMap:i,onLineStickOrUnstick:o,tabSize:p,contentWidth:$,cursorContainerRef:H,onCollapseToggle:G,textAreaRef:P,materializeAllLines:x,copilotAccessAllowed:F})]})})})})]})})}try{tB.displayName||(tB.displayName="CodeBlob")}catch{}function tT({displayName:e,displayUrl:t}){return(0,a.jsx)(D.az,{sx:{display:"flex",justifyContent:"center",width:"100%"},children:(0,a.jsx)(D.az,{as:"img",alt:e,src:t,"data-hpc":!0,sx:{maxWidth:"100%"}})})}try{tT.displayName||(tT.displayName="ImageBlob")}catch{}var tL=n(94236),tA=n(5524),tD=n(99511),tO=n(4175),tE=n(64451),tR=n(86877),tz=n(46720);let tF={CheckboxGroup_Caption:"YamlTemplateContent-module__CheckboxGroup_Caption--ZQKpF",CheckboxGroup_Label:"YamlTemplateContent-module__CheckboxGroup_Label--dcg2n",CheckboxGroup:"YamlTemplateContent-module__CheckboxGroup--SE9my",FormControl_Label:"YamlTemplateContent-module__FormControl_Label--CQqVl"},tP={Issue:"issue",Discussion:"discussion"};function t$({issueTemplate:e,type:t}){return(0,a.jsxs)(D.az,{sx:{borderBottomLeftRadius:"6px",borderBottomRightRadius:"6px",p:5},children:[(0,a.jsxs)(D.az,{as:"table",sx:{mb:3},children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[t===tP.Issue?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(tM,{header:!0,children:"Name"}),(0,a.jsx)(tM,{header:!0,children:"About"})]}):(0,a.jsx)(tM,{header:!0,children:"Title"}),e.type&&(0,a.jsx)(tM,{header:!0,children:"Type"}),(0,a.jsx)(tM,{header:!0,children:"Labels"}),e.projects&&(0,a.jsx)(tM,{header:!0,children:"Projects"}),t===tP.Issue&&(0,a.jsx)(tM,{header:!0,children:"Assignees"})]})}),(0,a.jsx)("tbody",{children:(0,a.jsxs)("tr",{children:[t===tP.Issue?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(tM,{children:e.name}),(0,a.jsx)(tM,{children:e.about})]}):(0,a.jsx)(tM,{children:e.title}),e.type&&(0,a.jsx)(tM,{children:e.type}),(0,a.jsx)(tM,{children:e.labels}),e.projects&&(0,a.jsx)(tM,{children:e.projects}),t===tP.Issue&&(0,a.jsx)(tM,{children:e.assignees})]})})]}),e.inputs.map((e,t)=>(0,a.jsx)(tW,{input:e},t))]})}function tM({children:e,header:t}){return(0,a.jsx)(D.az,{as:t?"th":"td",sx:{p:"6px 13px",border:"1px solid var(--borderColor-default, var(--color-border-default))"},children:e})}function tW({input:e}){switch(e.type){case"markdown":return(0,a.jsx)(tH,{input:e});case"dropdown":return(0,a.jsx)(tV,{input:e});case"input":return(0,a.jsx)(tG,{input:e});case"textarea":return(0,a.jsx)(tU,{input:e});case"checkboxes":return(0,a.jsx)(tK,{input:e});default:return null}}function tH({input:e}){return e.value?(0,a.jsx)(eJ.vb,{html:e.value}):null}function tV({input:e}){let t=e.options?.slice();e.required||t?.unshift("None");let n=e.multiple?"Selections: ":"Selection: ";return e.value&&(n+=e.value),(0,a.jsx)(tq,{input:e,style:{alignItems:"start"},children:(0,a.jsxs)(tL.W,{children:[(0,a.jsx)(tL.W.Button,{children:n}),(0,a.jsx)(tL.W.Overlay,{width:"medium",children:(0,a.jsx)(tA.l,{selectionVariant:e.multiple?"multiple":"single",children:t?.map((t,n)=>(0,a.jsx)(tA.l.Item,{selected:t===e.value,disabled:!0,children:t},n))})})]})})}function tG({input:e}){return(0,a.jsx)(tq,{input:e,children:(0,a.jsx)(tD.A,{placeholder:e.placeholder,value:e.value??""})})}function tU({input:e}){return(0,a.jsx)(tq,{input:e,children:(0,a.jsx)(tO.Ay,{placeholder:e.placeholder,value:e.value??"",style:e.render?{fontFamily:"mono"}:{}})})}function tK({input:e}){return e.checkboxes?(0,a.jsxs)(tE.A,{disabled:!0,className:tF.CheckboxGroup,children:[(0,a.jsx)(tE.A.Label,{className:tF.CheckboxGroup_Label,children:e.label}),e.description&&(0,a.jsx)(tE.A.Caption,{className:tF.CheckboxGroup_Caption,children:(0,a.jsx)(eJ.vb,{html:e.description})}),e.checkboxes.map((e,t)=>(0,a.jsxs)(tR.A,{disabled:!0,required:e.required,children:[(0,a.jsx)(tz.A,{}),(0,a.jsx)(tR.A.Label,{children:e.label})]},t))]}):null}function tq({children:e,input:t,style:n}){return(0,a.jsxs)(tR.A,{disabled:!0,required:t.required,style:{marginLeft:"15px",marginRight:"15px",...n},children:[(0,a.jsx)(tR.A.Label,{className:tF.FormControl_Label,children:t.label}),t.description&&(0,a.jsx)(tR.A.Caption,{children:(0,a.jsx)(eJ.vb,{html:t.description})}),e]})}try{t$.displayName||(t$.displayName="YamlTemplateContent")}catch{}try{tM.displayName||(tM.displayName="MarkdownTableCell")}catch{}try{tW.displayName||(tW.displayName="TemplateInput")}catch{}try{tH.displayName||(tH.displayName="MarkdownInput")}catch{}try{tV.displayName||(tV.displayName="DropdownInput")}catch{}try{tG.displayName||(tG.displayName="InputInput")}catch{}try{tU.displayName||(tU.displayName="TextareaInput")}catch{}try{tK.displayName||(tK.displayName="CheckboxesInput")}catch{}try{tq.displayName||(tq.displayName="InputWrapper")}catch{}let tY=(0,m.lazy)(()=>n.e("app_assets_modules_react-code-view_components_blob_BlobContent_CSV_CSVBlob_tsx").then(n.bind(n,53318))),tQ=(0,m.lazy)(()=>n.e("packages_file-renderer-blob_FileRendererBlob_tsx").then(n.bind(n,33671)));function tX({setOpenPanel:e,codeNavInfo:t,validCodeNav:n,onCodeNavTokenSelected:i,onLineStickOrUnstick:r,searchResults:o,setSearchTerm:s,blobLinesHandle:l,focusedSearchResult:c}){let d=!!(0,eh.O)(),{rawLines:u}=(0,em.A)(),{sendRepoKeyDownEvent:h}=(0,R.T)(),{findInFileShortcut:p}=(0,v.wk)(),f=eE(),{setFindInFileOpen:y}=eD(),b=f===eO.Code,g=b&&null!=u&&n?p.hotkey:"",_=(0,eT.fY)();(0,m.useEffect)(()=>{b||e(void 0)},[b,e]);let j=b||f===eO.CSV||f===eO.Markdown?{}:{overflow:"auto"},w=f===eO.Markdown?{justifyContent:"center"}:{};return(0,a.jsxs)(D.az,{as:"section","aria-labelledby":"file-name-id-wide file-name-id-mobile",sx:{backgroundColor:"var(--bgColor-default, var(--color-canvas-default))",border:"0px",borderWidth:0,borderRadius:"0px 0px 6px 6px",p:0,minWidth:0,mt:d?"92px":"46px",...w,...j},children:[(0,a.jsx)(tZ,{blobLinesHandle:l,onCodeNavTokenSelected:i,codeSections:d?void 0:t?.codeSections,codeLineToSectionMap:t?t.lineToSectionMap:void 0,validCodeNav:n,onLineStickOrUnstick:r,searchResults:o,focusedSearchResult:c}),b&&!_&&(0,a.jsx)(x._,{buttonFocusId:eg.wQ,buttonHotkey:g,onButtonClick:function(){y(!0),h("BLOB_FIND_IN_FILE_MENU.OPEN");let e=window.getSelection()?.toString();e&&s(e)},buttonTestLabel:"hotkey-button"})]})}let tZ=m.memo(function({onCodeNavTokenSelected:e,codeSections:t,codeLineToSectionMap:n,validCodeNav:i,onLineStickOrUnstick:r,searchResults:o,blobLinesHandle:s,focusedSearchResult:l}){let c=(0,em.A)(),d=eE();switch(d){case eO.TooLargeError:return(0,a.jsxs)(D.az,{sx:{textAlign:"center"},"data-hpc":!0,children:[(0,a.jsx)(en.A,{href:c.rawBlobUrl,children:"View raw"}),c.large&&(0,a.jsx)("p",{children:"(Sorry about that, but we can\u2019t show files that are this big right now.)"})]});case eO.Code:return(0,a.jsx)(tB,{blobLinesHandle:s,onCodeNavTokenSelected:e,codeSections:t,codeLineToSectionMap:n,validCodeNav:i,onLineStickOrUnstick:r,searchResults:o,focusedSearchResult:l});case eO.Markdown:return(0,a.jsx)(eP,{richText:c.richText,sx:{borderBottomLeftRadius:"6px",borderBottomRightRadius:"6px",p:5,minWidth:0}});case eO.CSV:return(0,a.jsx)(m.Suspense,{fallback:(0,a.jsx)(e$.f,{}),children:(0,a.jsx)(tY,{csv:c.csv})});case eO.FileRenderer:return(0,a.jsx)(m.Suspense,{fallback:(0,a.jsx)(e$.f,{}),children:(0,a.jsx)(tQ,{identityUuid:c.renderedFileInfo.identityUUID,size:c.renderedFileInfo.size,type:c.renderedFileInfo.renderFileType,url:c.displayUrl},c.renderedFileInfo.identityUUID)});case eO.Image:return(0,a.jsx)(tT,{displayName:c.displayName,displayUrl:c.displayUrl});case eO.IssueTemplate:return(0,a.jsx)(t$,{issueTemplate:c.issueTemplate?c.issueTemplate:c.discussionTemplate,type:c.issueTemplate?tP.Issue:tP.Discussion,"data-hpc":!0});default:eR(d)}});try{tY.displayName||(tY.displayName="CSVBlob")}catch{}try{tQ.displayName||(tQ.displayName="FileRendererBlob")}catch{}try{tX.displayName||(tX.displayName="BlobContent")}catch{}try{tZ.displayName||(tZ.displayName="Blob")}catch{}var tJ=n(41461),t0=n(49884),t1=n(5839),t2=n(21373),t4=n(23657),t3=n(46251),t5=n(44956),t6=n(6236),t7=n(72011),t8=n(97665),t9=n(94747),ne=n(31971);let nt=e=>{let t=(0,t8.jE)(),{mutateAsync:n,...i}=(0,t9.n)({onSuccess:async()=>{t.invalidateQueries({queryKey:t7.O6}),e&&await t.invalidateQueries({queryKey:(0,t7.dp)(e)})},mutationFn:async t=>{let n=e?(0,t4.fn)(e):"/custom_copilots",i={custom_copilot:{name:t.name,description:t.description,owner_id:t.owner_id,owner_type:t.owner_type,resources_attributes:t.resources?.map(e=>({id:e.databaseId,copilot_chat_attachment_id:e.copilotChatAttachmentId,resource_type:e.type,_destroy:e.markedForDestroy,metadata:(0,ne.M)(e)}))}},r=await (0,eI.lS)(n,{method:e?"PUT":"POST",body:i}),a=await r.json();if(!r.ok)throw a.errorMessages;return a}});return{upsertCopilotSpace:n,...i}};function nn({closeDialog:e,repoId:t}){let n=(0,m.useRef)(null),[i,r]=(0,m.useState)(""),[o,s]=(0,m.useState)(""),[l,c]=(0,m.useState)({}),{upsertCopilotSpace:d,isPending:u}=nt(),[h,p]=(0,m.useState)(null),f=(0,m.useCallback)(e=>p(e),[]),x=(0,m.useCallback)(e=>{let t={...l};for(let n of e)t[n]&&delete t[n];c(t)},[l]),y=async()=>{if(!u)try{await d({name:i,owner_id:h?.id,owner_type:h?.type,description:o}),c({}),e()}catch(e){c(e??{})}},b=()=>{e()};return(0,a.jsx)(tN.l,{position:{narrow:"fullscreen"},title:"Create a new Space",onClose:e,width:"large","aria-label":"Create a new Space",renderFooter:()=>(0,a.jsx)(t5.m,{onCancel:b,onSave:y,isLoading:u,saveButtonText:"Create"}),children:(0,a.jsx)("form",{onSubmit:async e=>{e.preventDefault(),e.stopPropagation(),await y()},children:(0,a.jsxs)(t3.B,{children:[(0,a.jsxs)(tR.A,{children:[(0,a.jsx)(tR.A.Label,{required:!0,children:"Name"}),(0,a.jsx)(tD.A,{ref:n,autoFocus:!0,block:!0,"data-testid":"copilot-space-name-input",name:"copilot-space-name",value:i,onChange:e=>{r(e.target.value),x(["name","slug"])}}),l.name?(0,a.jsx)(tR.A.Validation,{variant:"error",children:(0,a.jsxs)("span",{children:["Name ",l.name]})}):l.slug?(0,a.jsx)(tR.A.Validation,{variant:"error",children:(0,a.jsx)("span",{children:t4.j0})}):null]}),(0,a.jsx)(t6.E,{onSelect:f,repoId:t}),(0,a.jsxs)(tR.A,{children:[(0,a.jsx)(tR.A.Label,{required:!1,children:"Description"}),(0,a.jsx)(tO.Ay,{block:!0,name:"description",value:o,rows:3,resize:"vertical",onChange:e=>{s(e.target.value),x(["description"])}}),l.description?(0,a.jsx)(tR.A.Validation,{variant:"error",children:(0,a.jsxs)("span",{children:["Description ",l.description]})}):(0,a.jsx)(ni,{text:o,promptCharLimit:100})]})]})})})}function ni({text:e,promptCharLimit:t}){let n=e.length>t,i=(0,a.jsxs)(a.Fragment,{children:[e.length.toLocaleString()," / ",t.toLocaleString()," characters"]});return(0,a.jsx)(a.Fragment,{children:n?(0,a.jsx)(tR.A.Validation,{variant:"error",children:i}):(0,a.jsx)(tR.A.Caption,{children:i})})}try{nn.displayName||(nn.displayName="SpacesSelectionCreateSpaceDialog")}catch{}try{ni.displayName||(ni.displayName="CharacterCount")}catch{}var nr=n(23967);function na({repository:e,currentFile:t}){let[n,i]=(0,m.useState)(!1),r=(0,m.useRef)(!1),[o,s]=(0,m.useState)(""),[l,c]=(0,m.useState)(""),[d,u]=(0,m.useState)(!1),[h,p]=(0,m.useState)([]),[f,x]=(0,m.useState)([]),[y,b]=(0,m.useState)(!1),[g,_]=(0,m.useState)(!1),[j,v]=(0,m.useState)(void 0),[w,N]=(0,m.useState)(!1),{upsertCopilotSpace:k}=nt(j),C=(0,m.useMemo)(()=>{let e=t.path.split("/").pop()||"",n=e.lastIndexOf("."),i=n>0?e.slice(n+1):"";return Object.values(nr.r4).some(e=>e.extensions?.includes(`.${i}`))},[t.path]);(0,m.useEffect)(()=>{if(!r.current||!j)return;let e={id:"",repositoryId:t.repoID,nwo:`${t.repoOwner}/${t.repoName}`,filePath:t.path,fileExists:!0,type:"github_file",markedForDestroy:!1};(async()=>{try{await k({resources:[e]}),N(!1),i(!1)}catch{N(!0)}finally{r.current=!1}})()},[j,k,t]);let S=(0,m.useCallback)(async()=>{try{let t=new URLSearchParams({q:l,owner:e.private?e.ownerLogin:""}),n=await (0,eI.lS)(`/github-copilot/chat/custom_copilots/search?${t.toString()}`);if(!n.ok)throw Error("Failed to fetch spaces");return await n.json()}catch{return[]}},[l,e.private,e.ownerLogin]);(0,m.useEffect)(()=>{let e=!1;return(async()=>{if(!1===n)return;if(u(!0),""===l&&y){e||(p(f),u(!1));return}let t=await S();e||(p(t),y||(x(t),b(!0)),u(!1))})(),()=>{e=!0}},[S,l,y,n]),(0,m.useEffect)(()=>()=>{T.current&&clearTimeout(T.current)},[]);let I=h.map(e=>({id:`${e.owner}-${e.id}`,key:`${e.owner}-${e.id}`,text:e.name,description:e.owner,descriptionVariant:"block",value:`${e.owner}-${e.id}`})),B=()=>{_(!0),(0,ed.BI)("copilot_spaces.code_view",{target:"COPILOT_SPACES_CODE_VIEW_MENU_CREATE_SPACE"}),i(!1)},T=(0,m.useRef)(null);return C?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(t1.X,{title:"Select a space",notice:(()=>{if(w)return{text:"There was a problem adding the file to this space",variant:"error"}})(),onCancel:()=>i(!1),renderAnchor:e=>(0,a.jsx)(t2.Q,{"aria-label":"Add to space","aria-haspopup":"dialog",leadingVisual:P.SpaceIcon,...e,children:"Add to space"}),open:n,onOpenChange:e=>{!e&&(w||r.current)||(i(e),e?((0,ed.BI)("copilot_spaces.code_view",{target:"COPILOT_SPACES_CODE_VIEW_MENU_OPENED"}),N(!1)):(s(""),c("")))},loading:d,items:I,filterValue:o,onFilterChange:e=>{s(e),T.current&&clearTimeout(T.current),T.current=setTimeout(()=>{c(e)},350)},...{selected:void 0,onSelectedChange:e=>{N(!1),v(h.find(t=>`${t.owner}-${t.id}`===e?.id)),r.current=!0}},overlayProps:{height:"xlarge",width:"large"},message:0!==h.length||d?void 0:{title:"No spaces found",body:"You can create a new space to get started.",variant:"empty",action:(0,a.jsx)(t2.Q,{variant:"default",size:"small",leadingVisual:P.PlusIcon,onClick:B,children:"Create a new space"})},secondaryAction:h.length>0?(0,a.jsx)(t1.X.SecondaryActionButton,{onClick:B,children:"Create a space"}):void 0}),g&&(0,a.jsx)(nn,{closeDialog:()=>_(!1),repoId:t.repoID})]}):null}try{na.displayName||(na.displayName="SpacesSelectionMenu")}catch{}var no=n(69599),ns=n(61282),nl=n(41462),nc=n(43258),nd=n(73783),nu=n(34164),nh=n(80427),nm=n(25556);function np(e,t,n){let[i,r]=(0,m.useState)(""),o=(0,m.useCallback)(()=>{r("")},[]);return[(0,m.useCallback)(e=>{r(e),t.current!==document.activeElement&&setTimeout(o,3e3)},[o,t]),o,(0,a.jsx)(nf,{message:i,id:e,contentRef:t,clearMessage:o,portalTooltipProps:n},e)]}function nf({message:e,id:t,contentRef:n,clearMessage:i,portalTooltipProps:r}){return e?(0,a.jsx)(nm.m,{id:t,contentRef:n,"aria-label":e,open:!!e,onMouseLeave:i,"aria-live":"assertive",...r}):null}try{nf.displayName||(nf.displayName="AlertTooltip")}catch{}var nx=n(15360),ny=n(25102),nb=n(26108);function ng({disabled:e,...t}){let n=e?{"aria-disabled":!0,onClick:e=>e.preventDefault()}:{};return(0,a.jsx)(nb.K,{size:"small",...t,...n})}try{ng.displayName||(ng.displayName="AccessibleIconButton")}catch{}var n_=n(26607);let nj=(0,m.lazy)(()=>n.e("app_assets_modules_react-code-view_components_blob_BlobContent_CodeNav_ScrollMarks_tsx").then(n.bind(n,27538)));function nv({stickied:e,searchTerm:t,searchResults:n,setSearchTerm:i,focusedSearchResult:r,setFocusedSearchResult:o,onClose:s}){let l=(0,eT.fY)(),c=(0,m.useRef)(null),{findInFileShortcut:d,findSelectionShortcut:u,findNextShortcut:h,findPrevShortcut:p}=(0,v.wk)(),[f,y]=(0,m.useState)(!0),{sendRepoKeyDownEvent:b}=(0,R.T)(),g=e=>{if(void 0===r)return void o(0);1===e?o(r===n.length-1?0:r+1):o(0===r?n.length-1:r-1)};(0,m.useEffect)(()=>{c.current?.focus(),c.current?.select()},[]);let _=()=>{let e=window.getSelection()?.toString();e?.length&&(i(e),o(0),b("BLOB_FIND_IN_FILE_MENU.FIND_IN_FILE_FROM_SELECTION")),c.current?.focus(),c.current?.select()};return((0,m.useEffect)(()=>{n.length>0&&void 0!==r&&(0,e_.f)({line:n[r].lineNumber,column:n[r].ident.start.column})},[n,r]),l)?null:(0,a.jsxs)("div",{className:`find-in-file-popover ${e?"find-in-file-popover-stickied":"find-in-file-popover-not-stickied"}`,children:[(0,a.jsxs)(D.az,{sx:{fontSize:0,py:2,pl:3,pr:2,borderBottom:"1px solid var(--borderColor-default, var(--color-border-default))",display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center"},children:[(0,a.jsxs)(D.az,{sx:{display:"flex",flexDirection:"row",alignItems:"baseline"},children:[(0,a.jsx)(D.EY,{as:"h5",sx:{color:"fg.default",pr:2,fontWeight:"bold"},children:"Find"}),(0,a.jsxs)(D.EY,{className:"find-text-help-tooltip",sx:{color:"fg.subtle",visibility:f?"visible":"hidden"},children:["Press ",(0,a.jsx)(n_.A,{children:d.text})," again to open the browser's find menu"]})]}),(0,a.jsx)(D.az,{sx:{flex:1}}),(0,a.jsx)(D.K0,{variant:"invisible",size:"small",onClick:s,icon:P.XIcon,sx:{color:"fg.subtle"},"aria-label":"Close find in file"})]}),(0,a.jsxs)(D.az,{sx:{px:2,py:"6px"},children:[(0,a.jsx)(D.ks,{ref:c,sx:{pl:1,border:"none",boxShadow:"none"},validationStatus:n.length>1e3?"error":void 0,type:"text",leadingVisual:()=>(0,a.jsx)($.A,{icon:P.SearchIcon,"aria-hidden":"true"}),"aria-labelledby":"find-in-file-label","aria-expanded":"true",autoComplete:"off",name:"Find in file input",placeholder:"Search this file",value:t,block:!0,onChange:e=>{e.target.value?(y(!1),i(e.target.value),void 0===r&&o(0)):(y(!0),i(""),o(0))},trailingAction:(0,a.jsxs)(D.az,{sx:{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center"},children:[(0,a.jsxs)(D.EY,{className:"text-small",sx:{textAlign:"center",color:"fg.subtle",m:2},children:[0===n.length||void 0===r?0:r+1,"/",n.length]}),(0,a.jsx)(D.K0,{size:"small",variant:"invisible",onClick:()=>{g(-1)},icon:P.ChevronUpIcon,"aria-label":"Up","data-testid":"up-search",sx:{color:"fg.subtle"}}),(0,a.jsx)(D.K0,{size:"small",variant:"invisible",onClick:()=>{g(1)},icon:P.ChevronDownIcon,"aria-label":"Down","data-testid":"down-search",sx:{color:"fg.subtle"}})]}),onKeyDown:e=>{"Enter"===e.code||"NumpadEnter"===e.code?e.shiftKey?g(-1):g(1):(e.metaKey||e.ctrlKey)&&("g"===e.key||"G"===e.key)?(e.preventDefault(),e.shiftKey?g(-1):g(1)):(e.metaKey||e.ctrlKey)&&("f"===e.key||"F"===e.key)?f?(b("BLOB_FIND_IN_FILE_MENU.FALLBACK_TO_BROWSER_SEARCH"),s()):(y(!0),e.preventDefault(),c.current?.focus(),c.current?.select()):"Escape"===e.key&&s()}}),(0,a.jsx)(x._,{buttonFocusId:eg.wQ,buttonHotkey:d.hotkey,onButtonClick:_,buttonTestLabel:"hotkey-button"}),(0,a.jsx)("button",{hidden:!0,"data-hotkey":u.hotkey,onClick:_,"data-testid":"selection-hotkey"}),(0,a.jsx)("button",{hidden:!0,"data-hotkey":h.hotkey,onClick:()=>g(1),"data-testid":"find-next-button"}),(0,a.jsx)("button",{hidden:!0,"data-hotkey":p.hotkey,onClick:()=>g(-1),"data-testid":"find-prev-button"}),(0,a.jsx)(m.Suspense,{fallback:null,children:(0,a.jsx)(nj,{definitionsOrReferences:n})})]})]})}try{nj.displayName||(nj.displayName="ScrollMarks")}catch{}try{nv.displayName||(nv.displayName="FindInFilePopover")}catch{}var nw=n(49799),nN=n(45385),nk=n(94602),nC=n(69497);function nS({showTitle:e=!0}){let{sendRepoClickEvent:t}=(0,R.T)(),[n,i]=(0,m.useState)(!1),r=(0,s.t)(),{refInfo:o,path:l}=(0,_.eu)(),{contributors:c,loading:d,error:u}=(0,nN.u)(r.ownerLogin,r.name,o.name,l);if(u)return(0,a.jsx)(nT,{});if(d)return(0,a.jsx)(nw.r,{width:100,"data-testid":"contributors-skeleton"});if(!c||!c?.users.length)return null;let{users:h,totalCount:p}=c,f=nB(p," contributor","contributors");return(0,a.jsxs)(D.az,{sx:{display:"flex",flexDirection:"row",alignItems:"center"},children:[(0,a.jsx)(D.az,{sx:{display:"flex",flexDirection:"row"},children:(0,a.jsx)(nk.A,{children:h.slice(0,10).map((e,t)=>(0,a.jsx)(eX.r,{className:t>5?"AvatarShowLarge":"AvatarShowMedium",src:e.primaryAvatarUrl,alt:e.login,"data-testid":"contributor-avatar","data-hovercard-url":(0,et.dCN)({owner:e.login})},e.login))})}),(0,a.jsxs)(D.N_,{as:"button","aria-label":`Show ${f}"`,onClick:()=>{i(!0),t("CONTRIBUTORS.LIST.OPEN")},"data-testid":"contributors-count-button",sx:{ml:2,color:"fg.default"},children:[(0,a.jsx)($.A,{icon:P.PeopleIcon}),e&&(0,a.jsx)(D.EY,{className:"react-contributors-title",sx:{mx:1,fontSize:0},children:"Contributors"}),(0,a.jsx)(D.$c,{sx:{mx:1,px:2,py:1},children:p})]}),n&&(0,a.jsx)(tN.l,{title:f,onClose:()=>i(!1),width:"medium",height:c.totalCount>=12?"small":"auto",renderBody:()=>(0,a.jsx)(D.lF,{sx:{overflowY:"auto",py:2},"data-testid":"contributor-dialog-list",children:h.map(e=>(0,a.jsx)(nI,{user:e},e.login))})})]})}function nI({user:e}){let{sendRepoClickEvent:t}=(0,R.T)(),{path:n,refInfo:i}=(0,_.eu)(),r=(0,s.t)();return(0,a.jsxs)(D.lF.Item,{sx:{display:"flex",flexDirection:"row",fontSize:1,py:2,color:"fg.default","&:hover":{backgroundColor:"canvas.subtle"}},"data-testid":"contributor-dialog-row",onSelect:()=>t("CONTRIBUTORS.LIST.USER"),children:[(0,a.jsxs)(D.N_,{as:eZ.N,sx:{flex:1},muted:!0,to:e.profileLink,onClick:()=>t("CONTRIBUTORS.LIST.USER"),children:[(0,a.jsx)(eX.r,{src:e.primaryAvatarUrl,alt:e.login,sx:{mr:2},"aria-hidden":"true"}),(0,a.jsx)(nC.A,{inline:!0,title:e.login,children:e.login})]}),(0,a.jsx)(D.lF.TrailingVisual,{children:(0,a.jsx)(D.N_,{as:eZ.N,muted:!0,to:(0,et.MtY)({repo:r,branch:i.name,path:n,author:e.login}),onClick:()=>t("CONTRIBUTORS.LIST.COMMITS"),"aria-label":`${nB(e.commitsCount,"commit","commits")} by ${e.login}`,"data-testid":"commit-link",children:nB(e.commitsCount,"commit","commits")})})]})}function nB(e,t,n){return`${e} ${1===e?t:n}`}function nT(){return(0,a.jsxs)(D.EY,{sx:{color:"danger.fg"},children:[(0,a.jsx)($.A,{icon:P.AlertFillIcon}),"\xa0Cannot retrieve contributors info at this time."]})}try{nS.displayName||(nS.displayName="ContributorAvatars")}catch{}try{nI.displayName||(nI.displayName="ContributorRow")}catch{}try{nT.displayName||(nT.displayName="ContributorsError")}catch{}let nL={Box:"BlobViewHeader-module__Box--pvsIA",Box_1:"BlobViewHeader-module__Box_1--PPihg",Box_2:"BlobViewHeader-module__Box_2--G_jCG",Box_3:"BlobViewHeader-module__Box_3--Kvpex",Box_4:"BlobViewHeader-module__Box_4--vFP89",IconButton:"BlobViewHeader-module__IconButton--uO1fA",ActionMenu_Overlay:"BlobViewHeader-module__ActionMenu_Overlay--NLYvM",Box_5:"BlobViewHeader-module__Box_5--jot5O",Box_6:"BlobViewHeader-module__Box_6--gPoMf",IconButton_1:"BlobViewHeader-module__IconButton_1--MzNlL",LinkButton:"BlobViewHeader-module__LinkButton--DMph4",IconButton_2:"BlobViewHeader-module__IconButton_2--KDy6i"};var nA=n(93753);let nD={Button:"FileNameStickyHeader-module__Button--SaiiH",Box_1:"FileNameStickyHeader-module__Box_1--HSpOJ",Box_2:"FileNameStickyHeader-module__Box_2--_pDx6",Box_3:"FileNameStickyHeader-module__Box_3--AsYoJ",Box_4:"FileNameStickyHeader-module__Box_4--IyPx8",GoToTopButton:"FileNameStickyHeader-module__GoToTopButton--9lB4x",Box_5:"FileNameStickyHeader-module__Box_5--xBJ2J"};var nO=n(39803);function nE({fileNameId:e="file-name-id",id:t,fontSize:n,showCopyPathButton:i}){let r=(0,s.t)(),{refInfo:o,path:l,action:c}=(0,_.eu)();return(0,a.jsx)(nO.Q,{path:l,repo:r,commitish:o.name,isFolder:"tree"===c,fileNameId:e,id:t,fontSize:n,showCopyPathButton:i&&""!==l&&"/"!==l})}try{nE.displayName||(nE.displayName="ReposHeaderBreadcrumb")}catch{}let nR=()=>(0,a.jsx)(nE,{id:"sticky-breadcrumb",fileNameId:"sticky-file-name-id",fontSize:1}),nz=({sx:e,className:t})=>(0,a.jsx)(D.$n,{leadingVisual:P.ArrowUpIcon,variant:"invisible",size:"small",sx:e,onClick:e=>{e.preventDefault(),window.scrollTo({top:0,behavior:"smooth"})},className:(0,nu.$)(nD.Button,t),children:"Top"});function nF({isStickied:e,showTree:t,treeToggleElement:n}){return(0,a.jsx)(D.az,{sx:{display:e?"flex":"none",minWidth:0,py:2,...e?{backgroundColor:"canvas.subtle",borderLeft:"1px solid var(--borderColor-default, var(--color-border-default))",borderRight:"1px solid var(--borderColor-default, var(--color-border-default))"}:{}},children:t?(0,a.jsxs)("div",{className:nD.Box_5,children:[(0,a.jsx)(nR,{}),(0,a.jsx)(nz,{className:nD.GoToTopButton})]}):(0,a.jsxs)("div",{className:nD.Box_1,children:[(0,a.jsxs)("div",{className:nD.Box_2,children:[e&&n,(0,a.jsx)("div",{className:nD.Box_3,children:(0,a.jsx)(nA.R,{buttonClassName:"ref-selector-class"})}),(0,a.jsx)("div",{className:nD.Box_4,children:(0,a.jsx)(nR,{})})]}),(0,a.jsx)(nz,{className:nD.GoToTopButton})]})})}try{nR.displayName||(nR.displayName="StickyReposHeaderBreadcrumb")}catch{}try{nz.displayName||(nz.displayName="GoToTopButton")}catch{}try{nF.displayName||(nF.displayName="FileNameStickyHeader")}catch{}let nP={Box:"BlameAgeLegend-module__Box--dTotP",Text:"BlameAgeLegend-module__Text--qfxJQ",Box_1:"BlameAgeLegend-module__Box_1--n0gaX",Text_1:"BlameAgeLegend-module__Text_1--Ifgnh"},n$=m.memo(nM);function nM(){let e=function(){let{resolvedColorScheme:e}=(0,D.DP)();return e?.startsWith("dark")?Array(10).fill(null).map((e,t)=>e6[`scale.orange.${9-t}`]):Array(10).fill(null).map((e,t)=>e6[`scale.orange.${t}`])}();return(0,a.jsxs)("div",{"aria-hidden":!0,className:nP.Box,children:[(0,a.jsx)("span",{className:nP.Text,children:"Older"}),e.map((e,t)=>(0,a.jsx)(D.az,{sx:{backgroundColor:e},className:nP.Box_1},`blame-recency-color-${t}`)),(0,a.jsx)("span",{className:nP.Text_1,children:"Newer"})]})}try{nM.displayName||(nM.displayName="BlameAgeLegend")}catch{}var nW=n(59121);let nH={SegmentedControl:"BlobTabButtons-module__SegmentedControl--JMGov"};function nV(){let{headerInfo:{isCSV:e,isRichtext:t,shortPath:n},renderedFileInfo:i,image:r,issueTemplate:o,discussionTemplate:s,viewable:l}=(0,em.A)(),c=(0,eh.O)(),[d]=(0,ey.o)(),u="1"===d.get("plain")||!!d.get("short_path")?.length,h=i&&!l||r,p=t||o||s||e||i,f=i?`short_path=${n}`:"plain=1",{getUrl:y}=(0,k.Z)(),b=!p||u||c?c?2:1:0,[g,_]=(0,m.useState)(b);(0,e0.N)(()=>{_(b)},[b]);let j=(0,ey.Z)(),{viewCodeShortcut:w,viewPreviewShortcut:N,viewBlameShortcut:C}=(0,v.wk)(),S=e=>{if(p||(e+=1),_(e),g!==e)switch(e){case 0:j(y({action:"blob",params:"",hash:""}));break;case 1:j(y({action:"blob",params:p?f:"",hash:location.hash?.substring(1)??void 0}));break;case 2:j(y({action:"blame",params:"",hash:location.hash?.substring(1)??void 0}))}};if(h)return null;let I=[(0,a.jsx)(nW.I.Button,{selected:1===g,"data-hotkey":w.hotkey,children:"Code"},"raw"),(0,a.jsx)(nW.I.Button,{selected:2===g,"data-hotkey":C.hotkey,children:"Blame"},"blame")],B=(0,a.jsx)(nW.I.Button,{selected:0===g,"data-hotkey":N.hotkey,children:"Preview"},"preview'"),T=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(x._,{buttonFocusId:eg.wQ,buttonHotkey:w.hotkey,onlyAddHotkeyScopeButton:!0,onButtonClick:()=>(0,m.startTransition)(()=>S(+!!p))}),(0,a.jsx)(x._,{buttonFocusId:eg.wQ,buttonHotkey:C.hotkey,onlyAddHotkeyScopeButton:!0,onButtonClick:()=>(0,m.startTransition)(()=>S(p?2:1))}),p&&(0,a.jsx)(x._,{buttonFocusId:eg.wQ,buttonHotkey:N.hotkey,onlyAddHotkeyScopeButton:!0,onButtonClick:()=>(0,m.startTransition)(()=>S(0))})]}),L=p?h?[B]:[B,...I]:[...I];return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(nW.I,{"aria-label":"File view",size:"small",onChange:S,className:nH.SegmentedControl,children:L}),T]})}try{nV.displayName||(nV.displayName="BlobTabButtons")}catch{}var nG=n(55255),nU=n(10436),nK=n(15668);let nq={Box:"CodeSizeDetails-module__Box--QdxnQ",Box_1:"CodeSizeDetails-module__Box_1--_uFDs",Truncate:"CodeSizeDetails-module__Truncate--crycx",Text:"CodeSizeDetails-module__Text--j_Gbp",PrimerLink:"CodeSizeDetails-module__PrimerLink--Rhviw",Truncate_1:"CodeSizeDetails-module__Truncate_1--er0Uk",PrimerLink_1:"CodeSizeDetails-module__PrimerLink_1--ASUIG",Text_1:"CodeSizeDetails-module__Text_1--K8OQg",Tooltip:"CodeSizeDetails-module__Tooltip--wbw9i"};function nY({className:e}){let{codeownerInfo:t}=(0,nK.Y_)(),{helpUrl:n}=(0,_.sq)(),i=(0,em.A)(),{path:r,refInfo:o}=(0,_.eu)(),l=(0,s.t)(),c=(0,eh.O)(),{headerInfo:{blobSize:d,isGitLfs:u,lineInfo:{truncatedLoc:h,truncatedSloc:m},mode:p},viewable:f,rawLines:x}=i,y="symbolic link"===p?function({rawLines:e,blame:t,repo:n,refInfo:i,path:r}){if(!e||!e[0])return null;let a=e[0];a.startsWith("/")||/^[a-zA-Z]:\\/.test(a)||(a=`${r}/../${a}`);let o={owner:n.ownerLogin,repo:n.name,commitish:i.name,filePath:a};return t?(0,et.buO)(o):(0,et.nD_)(o)}({rawLines:x,blame:c,repo:l,refInfo:o,path:r}):void 0;return(0,a.jsx)("div",{className:(0,nu.$)(e,nq.Box),children:(0,a.jsxs)("div",{className:(0,nu.$)("text-mono",nq.Box_1),children:["file"!==p&&!y&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(nC.A,{title:p,inline:!0,className:nq.Truncate,children:(0,a.jsx)("span",{children:p})}),f&&(0,a.jsx)("span",{className:nq.Text,children:"\xb7"})]}),f?(0,a.jsxs)(a.Fragment,{children:[y&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(D.N_,{as:eZ.N,muted:!0,to:y,className:nq.PrimerLink,children:"Symbolic Link"}),(0,a.jsx)("span",{className:nq.Text,children:"\xb7"})]}),(0,a.jsx)(nC.A,{maxWidth:"100%",title:d,inline:!0,"data-testid":"blob-size",className:nq.Truncate_1,children:(0,a.jsx)("span",{children:`${h} lines (${m} loc) \xb7 ${d}`})})]}):(0,a.jsx)("span",{children:d}),t&&(0,a.jsx)(nQ,{codeownerInfo:t}),u&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"file-info-divider"}),(0,a.jsx)(D.N_,{muted:!0,href:`${n}/articles/versioning-large-files/`,"aria-label":"Learn more about Git LFS",className:nq.PrimerLink_1,children:(0,a.jsx)(nU.m4,{icon:P.QuestionIcon})}),(0,a.jsx)("span",{children:" Stored with Git LFS"})]})]})})}function nQ({codeownerInfo:{codeownerPath:e,ownedByCurrentUser:t,ownersForFile:n,ruleForPathLine:i}}){var r,o,s;let l;if(!(t||n))return null;let c=(r=t,o=n,s=i,l="Owned by ",r&&(l+="you",o&&(l+=" along with ")),l+=o,s&&(l+=` (from CODEOWNERS line ${s})`),l),d=t?{color:"var(--fgColor-accent, var(--color-accent-fg))"}:{};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:nq.Text_1,children:" \xb7 "}),(0,a.jsx)(nG.A,{id:"codeowners-tooltip","aria-label":c,wrap:!0,className:nq.Tooltip,children:e?(0,a.jsx)(D.N_,{"aria-labelledby":"codeowners-tooltip",href:e,muted:!t,sx:d,children:(0,a.jsx)(nU.m4,{icon:P.ShieldLockIcon})}):(0,a.jsx)(nU.m4,{icon:P.ShieldLockIcon,sx:d})})]})}try{nY.displayName||(nY.displayName="CodeSizeDetails")}catch{}try{nQ.displayName||(nQ.displayName="CodeOwnersBadge")}catch{}var nX=n(39111);function nZ({editEnabled:e,githubDevUrl:t,ghDesktopPath:n,onBranch:i}){let{sendRepoClickEvent:r}=(0,R.T)(),o=(0,nX.X)(["windows","mac"]),{openWithGitHubDevShortcut:s}=(0,v.wk)();return(0,a.jsxs)(tA.l.Group,{children:[(0,a.jsx)(tA.l.GroupHeading,{children:"Open with..."}),t?(0,a.jsxs)(tA.l.LinkItem,{onClick:()=>r("BLOB_EDIT_DROPDOWN.DEV_LINK",{edit_enabled:e}),className:"js-blob-dropdown-click js-github-dev-shortcut",href:t,"data-hotkey":s.hotkey,children:["github.dev",(0,a.jsx)(tA.l.TrailingVisual,{"aria-hidden":"true",children:(0,a.jsx)(E.E,{children:(0,a.jsx)("kbd",{children:"."})})})]}):null,i&&o&&n?(0,a.jsx)(tA.l.LinkItem,{onClick:()=>r("BLOB_EDIT_DROPDOWN.DESKTOP"),href:n,children:"GitHub Desktop"}):null]})}function nJ(e,t,n){let i=(0,nX.X)(["windows","mac"]);return!!(e||t&&i&&n)}try{nZ.displayName||(nZ.displayName="OpenWithActionItems")}catch{}function n0({editAllowed:e,hasOpenWithItem:t}){let n=(0,em.A)(),{refInfo:i}=(0,_.eu)(),{canEdit:r}=i,{githubDevUrl:o}=(0,_.sq)(),{sendRepoClickEvent:l}=(0,R.T)(),{getUrl:c}=(0,k.Z)(),{defaultBranch:d}=(0,s.t)(),{headerInfo:{ghDesktopPath:u,onBranch:h}}=n,m=i.name===d,p=!!i.canEditOnDefaultBranch&&!m;return(0,a.jsxs)(a.Fragment,{children:[e&&(0,a.jsxs)(tA.l.Group,{children:[(0,a.jsx)(tA.l.GroupHeading,{children:"Edit file..."}),p?(0,a.jsxs)(tA.l.LinkItem,{onClick:()=>l("BLOB_EDIT_DROPDOWN.ON_DEFAULT_BRANCH"),href:c({action:"edit",commitish:d}),children:["On ",(0,a.jsx)("code",{children:d})," branch"]}):(0,a.jsxs)(tA.l.LinkItem,{onClick:()=>l("BLOB_EDIT_DROPDOWN.IN_PLACE"),href:c({action:"edit"}),"data-hotkey":"e",children:["In place",(0,a.jsx)(tA.l.TrailingVisual,{"aria-hidden":"true",children:(0,a.jsx)(E.E,{children:(0,a.jsx)("kbd",{children:"e"})})})]})]}),e&&t&&(0,a.jsx)(tA.l.Divider,{}),t&&(0,a.jsx)(nZ,{editEnabled:r,githubDevUrl:o,ghDesktopPath:u,onBranch:h})]})}try{n0.displayName||(n0.displayName="EditMenuActionItems")}catch{}function n1({shortcut:e}){return(0,a.jsx)(a.Fragment,{children:e.text?.split(" ").map(e=>(0,a.jsxs)(m.Fragment,{children:[(0,a.jsx)("kbd",{children:e})," "]},e))})}try{n1.displayName||(n1.displayName="KeyboardVisual")}catch{}var n2=n(99906);function n4(){return(0,em.A)().workflowRedirectUrl}function n3({onBlamePage:e,onDismiss:t,maxLineNumber:n}){let i=(0,ey.Z)(),r=(0,eT.fY)(),o=(0,eT.aM)(),l=(0,eT.ue)(),c=(0,m.useRef)(r?o:1),d=(0,m.useRef)(!0),[u,h]=(0,m.useState)(!0),p=(0,m.useRef)(o!==l&&r?l:null),{refInfo:f,path:x}=(0,_.eu)(),y=(0,s.t)(),b=(0,m.useRef)(null),g=(0,m.useRef)(c.current?`#L${c.current}${p.current?`-L${p.current}`:""}`:""),j=e?(0,et.buO)({repo:y.name,owner:y.ownerLogin,filePath:x,commitish:f.name}):(0,et.nD_)({repo:y.name,owner:y.ownerLogin,filePath:x,commitish:f.name});(0,m.useEffect)(()=>{b&&b.current&&(b.current.value=r?`${o}${l!==o?`-${l}`:""}`:"1",b.current.focus())},[]);let v=(e,n)=>{i(`${e}${n}`);let r=(0,eb.$c)(n);if(!r.blobRange?.start?.line||!d.current){h(d.current),setTimeout(()=>{b.current?.focus()},25);return}(0,e_.f)({line:r.blobRange.start.line}),t()};return(0,tk.createPortal)((0,a.jsxs)(n2.A,{isOpen:!0,onDismiss:t,children:[(0,a.jsx)(n2.A.Header,{children:"Jump to line"}),(0,a.jsxs)(D.az,{sx:{display:"flex",pl:3,pr:3,pt:3,pb:3*!!u},children:[(0,a.jsx)(D.az,{sx:{display:"flex",flexGrow:1,mr:2},children:(0,a.jsx)(D.ks,{ref:b,"aria-invalid":!u,"aria-describedby":u?"":"goToLineErrorValidation",sx:{flexGrow:1,pr:2},placeholder:"Jump to line...",onChange:e=>{let t=e.target.value;b&&b.current&&(b.current.value=t),function(e){let t=!0;if(""===e.trim()&&(c.current=1),e.startsWith("-")&&n){let i=parseInt(e,10);if(!Number.isNaN(i)&&i<0){let e=n+i+1;e<=0&&(e=1,t=!1),c.current=e}}else if(e.includes("-")){let[i,r]=e.split("-"),a=parseInt(i,10),o=parseInt(r,10);!Number.isNaN(a)&&a>0&&(c.current=n?Math.min(a,n):a,t=void 0!==n&&a<=n),!Number.isNaN(o)&&o>0&&(p.current=n?Math.min(o,n):o,t=t&&void 0!==n&&o<=n)}else{let i=parseInt(e,10);!Number.isNaN(i)&&i>0?(c.current=n?Math.min(i,n):i,t=void 0!==n&&i<=n):t=""===e}d.current=t,t&&!u&&h(!0),g.current=`#L${c.current}${p.current?`-L${p.current}`:""}`}(t)},onFocus:()=>{b&&b.current&&b.current.select()},onKeyDown:e=>{if("Enter"===e.key){if("Enter"===e.key&&!d.current){h(d.current),setTimeout(()=>{b.current?.focus()},25);return}v(j,g.current)}}})}),(0,a.jsx)(D.z9,{href:u?j+g.current:void 0,onClick:e=>{e.preventDefault(),v(j,g.current)},sx:tJ.E,children:"Go"})]}),!u&&(0,a.jsx)(D.az,{role:"alert",id:"goToLineErrorValidation",sx:{display:"flex",p:2,justifyContent:"center",color:"red"},children:"Invalid line number"})]}),document.body)}try{n3.displayName||(n3.displayName="GoToLineDialog")}catch{}var n5=n(60971),n6=n(6873);function n7(){let e=(0,s.t)(),{path:t,refInfo:n}=(0,_.eu)();return n.canEdit?(0,a.jsx)(tA.l.LinkItem,{as:eZ.N,to:(0,et.IO9)({repo:e,path:t,commitish:n.name,action:"tree/delete"}),children:(0,a.jsx)(D.EY,{sx:{color:"danger.fg"},children:"Delete directory"})}):null}try{n7.displayName||(n7.displayName="DeleteDirectoryItem")}catch{}let n8={Box:"CodeViewHeader-module__Box--PofRM",Box_1:"CodeViewHeader-module__Box_1--KpLzV",Box_2:"CodeViewHeader-module__Box_2--xzDOt",Box_3:"CodeViewHeader-module__Box_3--WnQ2n",Box_5:"CodeViewHeader-module__Box_5--KeXxF",Box_6:"CodeViewHeader-module__Box_6--iStzT",FileResultsList:"CodeViewHeader-module__FileResultsList--bglyC",Box_7:"CodeViewHeader-module__Box_7--FZfkg",IconButton:"CodeViewHeader-module__IconButton--EbF1J"},n9={Box:"DeleteHeaderButtons-module__Box--GOfJ9"},ie=(0,m.lazy)(()=>Promise.all([n.e("vendors-node_modules_tanstack_query-core_build_modern_queryObserver_js-node_modules_tanstack_-defd52"),n.e("vendors-node_modules_tanstack_react-query_build_modern_useQuery_js-node_modules_diff_lib_index_mjs"),n.e("vendors-node_modules_github_text-expander-element_dist_index_js"),n.e("packages_web-commit-dialog_WebCommitDialog_tsx"),n.e("app_assets_modules_react-code-view_components_blob-edit_WebCommitDialog_tsx"),n.e("packages_flash-error_FlashError_module_css-packages_text-expander_TextExpander_module_css-pac-a35192")]).then(n.bind(n,17584)));function it({webCommitInfo:e,isBlob:t}){let[n,i]=(0,m.useState)("closed"),r=(0,m.useRef)(null),o=(0,s.t)(),{refInfo:l,path:c}=(0,_.eu)(),{helpUrl:d}=(0,_.sq)(),u=(0,et.IO9)({repo:o,commitish:l.name,action:t?"blob":"tree",path:c});return e.shouldFork||e.shouldUpdate||e.lockedOnMigration?null:(0,a.jsxs)("div",{className:n9.Box,children:[(0,a.jsx)(t2.Q,{as:eZ.N,to:u,children:"Cancel changes"}),(0,a.jsx)(t2.Q,{variant:"primary",ref:r,onClick:()=>{(0,m.startTransition)(()=>{i("pending")})},children:"Commit changes..."}),("pending"===n||"saving"===n)&&(0,a.jsx)(m.Suspense,{fallback:null,children:(0,a.jsx)(ie,{isNewFile:!1,isDelete:!0,helpUrl:d,ownerName:o.ownerLogin,dialogState:n,setDialogState:i,refName:l.name,placeholderMessage:`Delete ${c}${t?"":" directory"}`,webCommitInfo:e,returnFocusRef:r})})]})}try{ie.displayName||(ie.displayName="WebCommitDialog")}catch{}try{it.displayName||(it.displayName="DeleteHeaderButtons")}catch{}let ii=(0,eW.A)("localStorage");function ir({symbolsEnabled:e}){let{codeFoldingOption:t,codeWrappingOption:n,codeCenterOption:i,openSymbolsOption:r}=(0,h.ud)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ia,{option:t}),(0,a.jsx)(ia,{option:n}),(0,a.jsx)(ia,{option:i}),e&&(0,a.jsx)(ia,{option:r})]})}function ia({option:e}){let t=(0,m.useCallback)(()=>{(0,m.startTransition)(()=>e.setEnabled(!e.enabled)),ii.setItem(e.name,String(!e.enabled)),e.name===h.T2&&eB(null,null,!e.enabled)},[e]);return(0,a.jsxs)(tA.l.Item,{role:"menuitemcheckbox","aria-checked":e.enabled,onSelect:t,children:[(0,a.jsx)(tA.l.LeadingVisual,{children:e.enabled&&(0,a.jsx)(P.CheckIcon,{})}),e.label]},e.name)}try{ir.displayName||(ir.displayName="SettingsMenuItems")}catch{}try{ia.displayName||(ia.displayName="OptionsElement")}catch{}function io({payload:e,showTree:t,treeToggleElement:n,validCodeNav:i,onFindFilesShortcut:r}){let{codeCenterOption:o}=(0,h.ud)();return(0,a.jsx)("div",{className:(0,nu.$)("container",n8.Box),children:(0,a.jsx)("div",{className:"px-3 pt-3 pb-0",id:"StickyHeader",children:(0,a.jsx)("div",{className:n8.Box_1,children:(0,a.jsxs)("div",{className:n8.Box_2,children:[t?(0,a.jsx)("div",{className:n8.Box_6,children:(0,a.jsx)(nE,{id:"repos-header-breadcrumb--wide",fileNameId:"file-name-id-wide",showCopyPathButton:!0})}):(0,a.jsxs)("div",{className:(0,nu.$)("react-code-view-header-wrap--narrow",n8.Box_3),children:[(0,a.jsx)(D.az,{sx:{display:"block","@media screen and (min-width: 1360px)":{display:o.enabled?"none":"block"},mr:2},children:n}),(0,a.jsx)("div",{className:"react-code-view-header-mb--narrow mr-2",children:(0,a.jsx)(nA.R,{buttonClassName:"ref-selector-class",idEnding:"repos-header-ref-selector-wide"})}),(0,a.jsx)("div",{className:(0,nu.$)("react-code-view-header-mb--narrow",n8.Box_5),children:(0,a.jsx)(nE,{id:"repos-header-breadcrumb",fileNameId:"file-name-id",showCopyPathButton:!0})})]}),(0,a.jsx)("div",{className:"react-code-view-header-element--wide",children:(0,a.jsx)(is,{payload:e,onFindFilesShortcut:r,narrow:!1,showTree:t,validCodeNav:i})}),(0,a.jsx)("div",{className:"react-code-view-header-element--narrow",children:(0,a.jsx)(is,{payload:e,onFindFilesShortcut:r,narrow:!0,showTree:t,validCodeNav:i})})]})})})})}function is({payload:e,onFindFilesShortcut:t,narrow:n,showTree:i,validCodeNav:r}){let o=(0,nx.y)(),{findFileWorkerPath:l,githubDevUrl:c}=(0,_.sq)(),d=(0,s.t)(),{refInfo:u,modelsRepoIntegrationEnabled:h,path:p}=(0,_.eu)(),{openWithGitHubDevShortcut:f,openWithGitHubDevInNewWindowShortcut:x}=(0,v.wk)(),y=(0,m.useRef)(null),b=(0,no.G7)("copilot_agent_tasks_btn_code_nav")&&(e.copilotSWEAgentEnabled??!1),g=!i&&(0,a.jsxs)("div",{children:[(0,a.jsx)(n6.default,{commitOid:u.currentOid,findFileWorkerPath:l,searchBoxRef:y,config:{enableOverlay:!0},className:n8.FileResultsList}),(0,a.jsx)(B.H,{inputRef:y,onFindFilesShortcut:t,textAreaId:eg.wQ})]});return(0,a.jsx)("div",{className:n8.Box_7,children:(0,a.jsxs)("div",{className:"d-flex gap-2",children:[(0,S.mM)(e)&&(0,a.jsxs)(em.s,{blob:e.blob,children:[!n&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(id,{}),g]}),(0,a.jsx)(ib,{onCopy:o,narrow:n,validCodeNav:r,copilotAccessAllowed:e.copilotAccessAllowed??!1})]}),h&&e.path?.match(/\.prompt\.(yml|yaml)$/)&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(t2.Q,{as:eZ.N,to:(0,et.afT)({repo:d,path:e.path,commitish:u.name,action:"edit"}),children:"Edit prompt"})}),(0,S.Hf)(e)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(nl.W,{as:"h2",text:"Directory actions"}),!n&&(0,a.jsxs)(a.Fragment,{children:[g,(0,a.jsx)(n5.L,{}),b&&(0,a.jsx)(ns.V,{isIconButton:!0,currentRepo:d,currentReference:{path:p},hideRepoSelector:!0,eventType:"new_agent_task_button_codenav"})]}),(0,a.jsx)(il,{narrow:n}),(0,a.jsx)(en.A,{className:"js-github-dev-shortcut d-none","data-hotkey":f.hotkey,href:c}),(0,a.jsx)(en.A,{className:"js-github-dev-new-tab-shortcut d-none","data-hotkey":x.hotkey,href:c,target:"_blank"})]}),(0,S.iS)(e)&&(0,a.jsx)(it,{webCommitInfo:e.webCommitInfo,isBlob:e.deleteInfo.isBlob})]})})}function il({narrow:e}){let{refInfo:t,path:n}=(0,_.eu)(),i=(0,s.t)(),{sendRepoClickEvent:r}=(0,R.T)(),{addToast:o}=(0,nc.Y6)(),{createPermalink:l}=(0,k.Z)(),{copyFilePathShortcut:c,copyPermalinkShortcut:d}=(0,v.wk)(),{codeCenterOption:u}=(0,h.ud)(),p=(0,m.useRef)(null),[f,y,b]=np("raw-copy-message-tooltip",p,{direction:"nw"});return(0,a.jsxs)(a.Fragment,{children:[c.hotkey&&(0,a.jsx)(x._,{buttonFocusId:eg.wQ,buttonHotkey:c.hotkey,onButtonClick:()=>{(0,nh.D)(n),o({type:"success",message:"Path copied!"})}}),d.hotkey&&(0,a.jsx)(x._,{buttonFocusId:eg.wQ,buttonHotkey:d.hotkey,onButtonClick:()=>{(0,nh.D)(l({absolute:!0})),o({type:"success",message:"Permalink copied!"})}}),(0,a.jsx)(nl.W,{as:"h2",text:"More options"}),b,(0,a.jsxs)(tL.W,{onOpenChange:e=>e&&r("MORE_OPTIONS_DROPDOWN"),anchorRef:p,children:[(0,a.jsx)(tL.W.Anchor,{children:(0,a.jsx)(nb.K,{icon:P.KebabHorizontalIcon,"aria-label":"More options",size:"medium",title:"More options","data-testid":"tree-overflow-menu-anchor",onBlur:y,className:n8.IconButton})}),(0,a.jsx)(tL.W.Overlay,{width:"small",children:(0,a.jsxs)(tA.l,{children:[e&&t.canEdit&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(tA.l.LinkItem,{as:eZ.N,onClick:()=>r("NEW_FILE_BUTTON"),to:(0,et.IO9)({repo:i,path:n,commitish:t.name,action:"new"}),children:[(0,a.jsx)(tA.l.LeadingVisual,{children:(0,a.jsx)(P.PlusIcon,{})}),"Create new file"]}),(0,a.jsxs)(tA.l.LinkItem,{onClick:()=>r("UPLOAD_FILES_BUTTON"),href:(0,et.IO9)({repo:i,path:n,commitish:t.name,action:"upload"}),children:[(0,a.jsx)(tA.l.LeadingVisual,{children:(0,a.jsx)(P.UploadIcon,{})}),"Upload files"]}),(0,a.jsx)(tA.l.Divider,{})]}),(0,a.jsx)(ic,{path:n,updateTooltipMessage:f}),t.canEdit&&(0,a.jsx)(tA.l.Divider,{}),(0,a.jsx)(n7,{}),(0,a.jsx)(tA.l.Divider,{}),(0,a.jsxs)(tA.l.Group,{children:[(0,a.jsx)(tA.l.GroupHeading,{children:"View options"}),(0,a.jsx)(ia,{option:u})]})]})})]})]})}function ic({path:e,updateTooltipMessage:t}){let{copyFilePathShortcut:n}=(0,v.wk)(),{copyPermalinkShortcut:i}=(0,v.wk)(),{sendRepoClickEvent:r}=(0,R.T)(),{createPermalink:o}=(0,k.Z)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(tA.l.Item,{onSelect:()=>{r("MORE_OPTIONS_DROPDOWN.COPY_PATH"),(0,nh.D)(e),t("Path copied!")},children:["Copy path",n.hotkey&&(0,a.jsx)(tA.l.TrailingVisual,{"aria-hidden":"true",className:"d-flex",children:(0,a.jsx)(n1,{shortcut:n})})]}),(0,a.jsxs)(tA.l.Item,{onSelect:()=>{r("MORE_OPTIONS_DROPDOWN.COPY_PERMALINK"),(0,nh.D)(o({absolute:!0})),t("Permalink copied!")},children:["Copy permalink",i.hotkey&&(0,a.jsx)(tA.l.TrailingVisual,{"aria-hidden":"true",className:"d-flex",children:(0,a.jsx)(n1,{shortcut:i})})]})]})}function id(){let e=n4();return e?(0,a.jsx)(t2.Q,{as:eZ.N,to:e,children:"View Runs"}):null}try{io.displayName||(io.displayName="CodeViewHeader")}catch{}try{is.displayName||(is.displayName="PageActions")}catch{}try{il.displayName||(il.displayName="TreeOverflowMenu")}catch{}try{ic.displayName||(ic.displayName="CopyPathsActionItems")}catch{}try{id.displayName||(id.displayName="ViewRunsButton")}catch{}function iu({fileReference:e}){return(0,a.jsx)(tA.l.Item,{"data-testid":"copilot-menu-items",onSelect:()=>(0,t0.Xu)(e),children:"Ask about this file"})}try{iu.displayName||(iu.displayName="CopilotMenuItems")}catch{}let ih={IconButton:"NavigationMenu-module__IconButton--NqJ_L",ActionMenu_Overlay:"NavigationMenu-module__ActionMenu_Overlay--OQ__q",Button:"NavigationMenu-module__Button--SJihq",ActionList_LinkItem:"NavigationMenu-module__ActionList_LinkItem--qaeAe"};function im({viewable:e,onCopy:t,name:n,updateTooltipMessage:i,all:r}){let{sendRepoClickEvent:o}=(0,R.T)(),{rawBlobUrl:s}=(0,em.A)(),{downloadRawContentShortcut:l}=(0,v.wk)(),c=(0,m.useCallback)(async()=>await ip(s,n),[n,s]);return(0,a.jsxs)(tA.l.Group,{children:[(0,a.jsx)(tA.l.GroupHeading,{children:"Raw file content"}),r&&(0,a.jsx)(ix,{viewable:e,onCopy:t,updateTooltipMessage:i}),r&&(0,a.jsx)(iy,{onClick:()=>o("BLOB_RAW_DROPDOWN.VIEW"),rawHref:s}),(0,a.jsxs)(tA.l.LinkItem,{onClick:c,children:["Download",l.text&&(0,a.jsx)(tA.l.TrailingVisual,{"aria-hidden":"true",className:"d-flex",children:(0,a.jsx)(n1,{shortcut:l})})]})]})}async function ip(e,t){let n=await fetch(e,{method:"get"}),i=await n.blob(),r=document.createElement("a");r.setAttribute("download",t);let a=URL.createObjectURL(i);r.href=a,r.setAttribute("target","_blank"),r.click(),URL.revokeObjectURL(a)}function ix({viewable:e,onCopy:t,updateTooltipMessage:n}){let{copyRawContentShortcut:i}=(0,v.wk)();return e?(0,a.jsxs)(tA.l.Item,{onSelect:async()=>{let e=await t(),{ariaLabel:i}=(0,ny.t0)(e);n(i)},children:["Copy",i.text&&(0,a.jsx)(tA.l.TrailingVisual,{"aria-hidden":"true",className:"d-flex",children:(0,a.jsx)(n1,{shortcut:i})})]}):null}function iy({onClick:e,rawHref:t}){let{viewRawContentShortcut:n}=(0,v.wk)();return(0,a.jsxs)(tA.l.LinkItem,{onClick:e,href:t,children:["View",n.text&&(0,a.jsx)(tA.l.TrailingVisual,{"aria-hidden":"true",className:"d-flex",children:(0,a.jsx)(n1,{shortcut:n})})]})}try{im.displayName||(im.displayName="RawMenuActionItems")}catch{}try{ix.displayName||(ix.displayName="CopyActionItem")}catch{}try{iy.displayName||(iy.displayName="RawActionItem")}catch{}function ib({onCopy:e,validCodeNav:t,narrow:n,copilotAccessAllowed:i}){let r=(0,em.A)(),o=r.symbolsEnabled,{action:c,path:d,refInfo:{canEdit:u,currentOid:h,name:p,refType:f}}=(0,_.eu)(),{githubDevUrl:y}=(0,_.sq)(),{sendRepoClickEvent:b}=(0,R.T)(),[g,j]=(0,m.useState)(!1),w=n4(),{search:N}=(0,eM.zy)(),C=new URLSearchParams(N),{setFindInFileOpen:S}=eD(),I=(0,eT.fY)(),B=!(r.richText&&"1"!==C.get("plain")||r.renderImageOrRaw||r.renderedFileInfo&&!C.get("short_path")||r.issueTemplate?.structured&&r.issueTemplate.valid),{headerInfo:{deleteTooltip:T,onBranch:L,siteNavLoginPath:A,lineInfo:{truncatedLoc:D}},viewable:O}=r,z=(0,l.i)(),{getUrl:F}=(0,k.Z)(),$=eE(),M=(0,m.useRef)("");(0,m.useEffect)(()=>{M.current=F({action:"blame"})},[F]);let{goToLineShortcut:W,findInFileShortcut:H,alternativeGoToLineShortcut:V}=(0,v.wk)(),G=(0,m.useRef)(null),[U,K,q]=np("raw-copy-message-tooltip",G,{direction:"nw"}),Y=(0,s.t)(),Q=F(),[X]=(0,eH.I)(()=>window.location.origin+Q,Q),Z=(0,m.useMemo)(()=>({type:"file",url:X,path:d,repoID:Y.id,repoOwner:Y.ownerLogin,repoName:Y.name,ref:ij(p,f??"branch"),commitOID:h}),[X,d,Y.id,Y.ownerLogin,Y.name,p,f,h]);return(0,a.jsxs)(a.Fragment,{children:[B&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(x._,{buttonFocusId:eg.wQ,buttonHotkey:W.hotkey,onButtonClick:()=>j(!0)}),(0,a.jsx)(x._,{buttonFocusId:eg.wQ,buttonHotkey:V.hotkey,onButtonClick:()=>j(!0)})]}),(0,a.jsx)(ig,{blameUrl:M.current,viewable:O,hidden:!0}),q,(0,a.jsxs)(tL.W,{onOpenChange:e=>e&&b("MORE_OPTIONS_DROPDOWN",{edit_enabled:u,github_dev_enabled:!!y}),anchorRef:G,children:[(0,a.jsx)(tL.W.Anchor,{children:(0,a.jsx)(nb.K,{icon:P.KebabHorizontalIcon,"aria-label":"More file actions",tooltipDirection:"nw",className:(0,nu.$)("js-blob-dropdown-click",ih.IconButton),size:"medium",variant:"default","data-testid":`more-file-actions-button-nav-menu-${n?"narrow":"wide"}`,onBlur:K})}),(0,a.jsx)(tL.W.Overlay,{width:"small",className:ih.ActionMenu_Overlay,children:(0,a.jsxs)(tA.l,{children:[n&&null!==w&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(tA.l.LinkItem,{href:w,children:"View Runs"}),(0,a.jsx)(tA.l.Divider,{})]}),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(im,{viewable:O,onCopy:e,name:r.displayName,updateTooltipMessage:U}),(0,a.jsx)(tA.l.Divider,{})]}),(0,a.jsxs)(tA.l.Group,{children:[B&&(0,a.jsxs)(tA.l.Item,{onSelect:()=>{b("MORE_OPTIONS_DROPDOWN.GO_TO_LINE"),j(!0)},"aria-keyshortcuts":W.hotkey,children:["Jump to line",(0,a.jsx)(tA.l.TrailingVisual,{"aria-hidden":"true",children:(0,a.jsx)(E.E,{children:(0,a.jsx)("kbd",{children:W.text})})})]}),$===eO.Code&&null!==r.rawLines&&t&&!I&&(0,a.jsxs)(tA.l.Item,{onSelect:()=>{b("BLOB_FIND_IN_FILE_MENU.OPEN"),S(!0)},"aria-keyshortcuts":H.ariaKeyShortcuts,children:["Find in file",(0,a.jsx)(tA.l.TrailingVisual,{"aria-hidden":"true",className:"d-flex",children:(0,a.jsx)(n1,{shortcut:H})})]})]}),(B||$===eO.Code&&null!==r.rawLines&&t)&&(0,a.jsx)(tA.l.Divider,{}),(0,a.jsx)(ic,{path:d,updateTooltipMessage:U}),(0,a.jsx)(tA.l.Divider,{}),i&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(tA.l.Group,{children:[(0,a.jsx)(tA.l.GroupHeading,{children:"Copilot"}),(0,a.jsx)(iu,{fileReference:Z})]}),(0,a.jsx)(tA.l.Divider,{})]}),(0,a.jsxs)(tA.l.Group,{children:[(0,a.jsx)(tA.l.GroupHeading,{children:"View options"}),(0,a.jsx)(ir,{symbolsEnabled:o})]}),(u&&L||!O&&L)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(tA.l.Divider,{}),(0,a.jsx)(i_,{deleteTooltip:T,loggedIn:!!z,siteNavLoginPath:A})]})]})})]}),g&&(0,a.jsx)(n3,{onBlamePage:"blame"===c,onDismiss:()=>{j(!1),setTimeout(()=>{let e=document.getElementById(eg.wQ);e?.focus()},0)},maxLineNumber:parseInt(D,10)??void 0})]})}function ig({blameUrl:e,viewable:t,hidden:n}){let{hash:i}=(0,eM.zy)(),r=(0,eM.Gy)(e+i),{viewBlameShortcut:o}=(0,v.wk)();return t?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(D.$n,{"data-hotkey":o.hotkey,sx:{...n?{display:"none"}:void 0},onClick:r,className:ih.Button,children:"Blame"}),(0,a.jsx)(x._,{buttonFocusId:eg.wQ,buttonHotkey:o.hotkey,onButtonClick:r,onlyAddHotkeyScopeButton:!0})]}):null}function i_({deleteTooltip:e,loggedIn:t,siteNavLoginPath:n}){let{getUrl:i}=(0,k.Z)();return(0,a.jsx)(tA.l.LinkItem,{as:eZ.N,"aria-label":e,to:t?i({action:"delete"}):n,className:ih.ActionList_LinkItem,children:"Delete file"})}let ij=(e,t)=>"branch"===t?`refs/heads/${e}`:"tag"===t?`refs/tags/${e}`:e;try{ib.displayName||(ib.displayName="NavigationMenu")}catch{}try{ig.displayName||(ig.displayName="BlameButton")}catch{}try{i_.displayName||(i_.displayName="DeleteActionItem")}catch{}let iv={IconButton:"TableOfContents-module__IconButton--RCaNg"};function iw({toc:e,openPanel:t,setOpenPanel:n,isDirectoryReadme:i}){var r;let o=m.useRef(null);return(r=e)&&r.length>=2?(0,a.jsx)(D.K0,{ref:o,tooltipDirection:"n",sx:{mr:2*!i},icon:P.ListUnorderedIcon,variant:"invisible","aria-label":"Outline","aria-pressed":"toc"===t,onClick:()=>{n?.("toc"===t?void 0:"toc",o.current)},size:"small",className:iv.IconButton}):null}try{iw.displayName||(iw.displayName="TableOfContents")}catch{}let iN={Box:"StickyLinesHeader-module__Box--X3qoe",Box_1:"StickyLinesHeader-module__Box_1--IClTl"};function ik({currentStickyLines:e,colorizedLines:t}){let n=Array.from(e.values());return(0,a.jsxs)("div",{className:iN.Box,children:[(0,a.jsx)("div",{className:(0,nu.$)("react-line-numbers",iN.Box_1),children:n.map(e=>(0,a.jsx)(e9.Kn,{codeLineData:e},`sticky-header-line-number-${e.lineNumber}`))}),(0,a.jsx)("div",{className:"react-code-lines",children:n.map(e=>t&&t[e.lineNumber-1]?(0,a.jsx)(eJ.$6,{className:"react-code-text react-code-line-contents-no-virtualization react-file-line html-div",style:{paddingLeft:"18px"},html:t[e.lineNumber-1],onClick:()=>(0,e_.f)({line:e.lineNumber})},`sticky-header-line-${e.lineNumber}`):(0,a.jsx)(e8.S,{codeLineData:e,stylingDirectivesLine:e.stylingDirectivesLine,codeLineToSectionMap:void 0,copilotAccessAllowed:!1,onClick:()=>(0,e_.f)({line:e.lineNumber}),shouldUseInert:!1},`sticky-header-line-${e.lineNumber}`))})]})}try{ik.displayName||(ik.displayName="StickyLinesHeader")}catch{}function iC({openPanel:e,setOpenPanel:t,showTree:n,validCodeNav:i,treeToggleElement:r,searchTerm:o,setSearchTerm:l,currentStickyLines:c,focusedSearchResult:d,setFocusedSearchResult:u,searchResults:h,searchingText:p,stickyHeaderRef:f,copilotInfo:x,colorizedLines:y}){let b=(0,em.A)(),g=b.symbolsEnabled,j=ek(f),{copilotAccessAllowed:w,refInfo:N,path:C}=(0,_.eu)(),S=eE(),{sendRepoClickEvent:I}=(0,R.T)(),B=(0,eN.ds)(),{copyFilePathShortcut:T}=(0,v.wk)(),{copyPermalinkShortcut:L}=(0,v.wk)(),A=(0,s.t)(),O=(0,no.G7)("copilot_agent_tasks_btn_code_view")&&b.copilotSWEAgentEnabled,E=(0,no.G7)("copilot_spaces_code_view"),{githubDevUrl:z}=(0,_.sq)(),{headerInfo:{toc:F,onBranch:$,ghDesktopPath:M},viewable:W}=b,H=nJ(z,$,M),V=(0,eh.O)(),G=(0,nx.y)(),{createPermalink:U}=(0,k.Z)(),{addToast:K}=(0,nc.Y6)(),{findInFileOpen:q,setFindInFileOpen:Y}=eD(),Q=(0,m.useRef)(null),[X,Z,J]=np("raw-actions-message-tooltip",Q,{direction:"nw"}),{getUrl:ee}=(0,k.Z)(),et=ee(),[en]=(0,eH.I)(()=>window.location.origin+et,et),ei=(0,m.useMemo)(()=>({type:"file",url:en,path:C,repoID:A.id,repoOwner:A.ownerLogin,repoName:A.name,ref:ij(N.name,N.refType??"branch"),commitOID:N.currentOid}),[en,C,A.id,A.ownerLogin,A.name,N.name,N.refType,N.currentOid]),er=W&&N.canEditOnDefaultBranch;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{ref:eN.oM,className:nL.Box,children:[(0,a.jsx)("div",{className:"react-blob-sticky-header",children:(0,a.jsx)(nF,{isStickied:j,showTree:n,treeToggleElement:r})}),(0,a.jsxs)(D.az,{sx:{borderRadius:j?"0px":"6px 6px 0px 0px"},className:nL.Box_1,children:[(0,a.jsx)(nl.W,{as:"h2",text:"File metadata and controls"}),(0,a.jsxs)("div",{className:nL.Box_2,children:[(0,a.jsx)(nV,{}),(0,a.jsx)(nY,{className:"react-code-size-details-in-header"}),(0,a.jsx)(ec.E,{copilotInfo:x,className:"react-code-size-details-in-header",view:V?"blame":"preview"})]}),(0,a.jsxs)("div",{className:nL.Box_3,children:[T.hotkey&&(0,a.jsx)(iT,{hotkey:T.hotkey,onActivate:()=>{(0,nh.D)(C),K({type:"success",message:"Path copied!"})}}),L.hotkey&&(0,a.jsx)(iT,{hotkey:L.hotkey,onActivate:()=>{(0,nh.D)(U({absolute:!0})),K({type:"success",message:"Permalink copied!"})}}),w&&E&&(0,a.jsx)(na,{repository:A,currentFile:ei}),(0,a.jsx)(t0.Ay,{copilotAccessAllowed:w,messageReference:ei,hideDropdown:!0,id:"blob-view-header-copilot-icon"}),O&&(0,a.jsx)(ns.V,{isIconButton:!0,size:"small",tooltipDirection:"n",currentRepo:A,currentReference:{path:C},hideRepoSelector:!0,eventType:"new_agent_task_button_codeview"}),(0,a.jsxs)("div",{className:(0,nu.$)("react-blob-header-edit-and-raw-actions",nL.Box_4),children:[(0,a.jsx)(iI,{onCopy:G,fileName:b.displayName}),(0,a.jsx)(iS,{})]}),S===eO.Code&&!V&&i&&g&&(0,a.jsx)(iB,{isCodeNavOpen:"codeNav"===e,setCodeNavOpen:e=>{e&&I("BLOB_SYMBOLS_MENU.OPEN"),localStorage.setItem("codeNavOpen",e?"codeNav":""),eB(null,e,null),t(e?"codeNav":void 0)},size:"small",searchingText:p.selectedText}),!V&&(0,a.jsx)(iw,{toc:F,openPanel:e,setOpenPanel:t}),(0,a.jsxs)("div",{className:"react-blob-header-edit-and-raw-actions-combined",children:[J,(0,a.jsxs)(tL.W,{anchorRef:Q,children:[(0,a.jsx)(tL.W.Anchor,{children:(0,a.jsx)(D.K0,{icon:P.KebabHorizontalIcon,tooltipDirection:"nw","aria-label":"Edit and raw actions",className:(0,nu.$)("js-blob-dropdown-click",nL.IconButton),size:"small",title:"More file actions",variant:"invisible","data-testid":"more-file-actions-button",onBlur:Z})}),(0,a.jsx)(tL.W.Overlay,{className:(0,nu.$)("react-blob-header-edit-and-raw-actions-combined",nL.ActionMenu_Overlay),width:"small",children:(0,a.jsxs)(tA.l,{children:[(N.canEdit&&W||er||H)&&(0,a.jsxs)("div",{className:"react-navigation-menu-edit-and-raw-actions",children:[(0,a.jsx)(n0,{editAllowed:!!(W&&N.canEdit)||!!er,hasOpenWithItem:H}),(0,a.jsx)(tA.l.Divider,{})]}),(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(im,{viewable:W,onCopy:G,name:b.displayName,updateTooltipMessage:X,all:!0})})]})})]})]})]})]}),V&&(0,a.jsxs)("div",{className:nL.Box_5,children:[(0,a.jsx)(n$,{}),(0,a.jsx)(nS,{})]})]}),q&&(0,a.jsx)(nv,{stickied:j,searchTerm:o,focusedSearchResult:d,setFocusedSearchResult:u,setSearchTerm:l,searchResults:h,onClose:()=>{Y(!1),"codeNav"===e&&l(p.selectedText)}}),(0,a.jsx)("div",{children:!V&&c.size>0&&(0,a.jsx)(D.az,{sx:{top:B},className:nL.Box_6,children:(0,a.jsx)(ik,{currentStickyLines:c,colorizedLines:y})})})]})}function iS(){let e=(0,em.A)(),{getUrl:t}=(0,k.Z)(),{refInfo:n}=(0,_.eu)(),{canEdit:i}=n,{sendRepoClickEvent:r}=(0,R.T)(),{githubDevUrl:o}=(0,_.sq)(),s=(0,ey.Z)(),{editFileShortcut:l,openWithGitHubDevShortcut:c,openWithGitHubDevInNewWindowShortcut:d}=(0,v.wk)(),u=!!n.canEditOnDefaultBranch,{headerInfo:{editTooltip:h,ghDesktopPath:m,onBranch:p}}=e,f=nJ(o,p,m);return i||f?(0,a.jsxs)(a.Fragment,{children:[o&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(en.A,{className:"js-github-dev-shortcut d-none","data-hotkey":c.hotkey,href:o}),(0,a.jsx)(x._,{buttonFocusId:eg.wQ,buttonHotkey:c.hotkey,onlyAddHotkeyScopeButton:!0,onButtonClick:()=>{s(o+window.location.pathname.substring(1))}}),(0,a.jsx)(en.A,{className:"js-github-dev-new-tab-shortcut d-none","data-hotkey":d.hotkey,href:o,target:"_blank"}),(0,a.jsx)(x._,{buttonFocusId:eg.wQ,buttonHotkey:d.hotkey,onlyAddHotkeyScopeButton:!0,onButtonClick:()=>{window.open(o,"_blank")}})]}),(0,a.jsxs)(nd.A,{children:[i?(0,a.jsx)(D.K0,{as:eZ.N,tooltipDirection:"nw","aria-label":h,"data-hotkey":l.hotkey,icon:P.PencilIcon,to:t({action:"edit"}),size:"small",sx:{...tJ.E},"data-testid":"edit-button",className:nL.IconButton_1}):(0,a.jsx)(ng,{icon:P.PencilIcon,"aria-label":h,disabled:!0,className:nL.IconButton_1}),(0,a.jsxs)(tL.W,{onOpenChange:e=>e&&r("BLOB_EDIT_DROPDOWN"),children:[(0,a.jsx)(tL.W.Anchor,{children:(0,a.jsx)(D.K0,{tooltipDirection:"nw",icon:P.TriangleDownIcon,size:"small","aria-label":"More edit options","data-testid":"more-edit-button"})}),(0,a.jsx)(tL.W.Overlay,{align:"end",children:(0,a.jsx)(tA.l,{children:(0,a.jsx)(n0,{editAllowed:i||u,hasOpenWithItem:f})})})]})]}),i&&(0,a.jsx)(x._,{buttonFocusId:eg.wQ,buttonHotkey:"e,Shift+E",onlyAddHotkeyScopeButton:!0,onButtonClick:()=>{s(t({action:"edit"}))}})]}):null}function iI({onCopy:e,fileName:t}){let{viewRawContentShortcut:n,copyRawContentShortcut:i,downloadRawContentShortcut:r}=(0,v.wk)(),{renderImageOrRaw:o,renderedFileInfo:s,viewable:l,image:c,rawBlobUrl:d,headerInfo:{isGitLfs:u}}=(0,em.A)(),h=(0,ey.Z)(),{addToast:p}=(0,nc.Y6)(),f=(0,m.useRef)(null),[y,b,g]=np("raw-copy-message-tooltip",f),_=async()=>{await ip(d,t)},j=async()=>{let t=await e(),{ariaLabel:n}=(0,ny.t0)(t);y(n)},w=new URL(d,eu.fV.origin);w.searchParams.set("download","");let N={"aria-label":"Download raw file",tooltipDirection:"n",icon:P.DownloadIcon,size:"small",onClick:async()=>{u||await ip(d,t)},"data-testid":"download-raw-button","data-hotkey":r.hotkey,sx:{borderTopLeftRadius:0,borderBottomLeftRadius:0}};return!u&&(s&&!l||c)?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(D.K0,{"aria-label":"Download raw file",tooltipDirection:"n",icon:P.DownloadIcon,size:"small",onClick:_,"data-testid":"download-raw-button","data-hotkey":r.hotkey}),(0,a.jsx)(x._,{buttonTestLabel:"download-raw-button-shortcut",buttonFocusId:eg.wQ,buttonHotkey:r.hotkey,onlyAddHotkeyScopeButton:!0,onButtonClick:_})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(nd.A,{children:[(0,a.jsx)(D.z9,{href:d,download:o?"true":void 0,size:"small",sx:{linkButtonSx:tJ.E},"data-testid":"raw-button","data-hotkey":n.hotkey,className:nL.LinkButton,children:"Raw"}),!u&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(D.K0,{ref:f,"aria-label":"Copy raw file",tooltipDirection:"n",icon:P.CopyIcon,size:"small",onMouseLeave:b,onClick:j,"data-testid":"copy-raw-button","data-hotkey":i.hotkey,onBlur:b}),g]}),u?(0,a.jsx)(D.K0,{as:"a","data-turbo":"false",href:w.toString(),...N}):(0,a.jsx)(D.K0,{...N})]}),(0,a.jsx)(x._,{buttonFocusId:eg.wQ,buttonHotkey:n.hotkey,buttonTestLabel:"raw-button-shortcut",onlyAddHotkeyScopeButton:!0,onButtonClick:()=>h(d)}),!u&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(x._,{buttonTestLabel:"copy-raw-button-shortcut",buttonFocusId:eg.wQ,buttonHotkey:i.hotkey,onlyAddHotkeyScopeButton:!0,onButtonClick:async()=>{let t=await e(),{ariaLabel:n,content:i}=(0,ny.t0)(t);p({message:n,icon:i})}}),(0,a.jsx)(x._,{buttonTestLabel:"download-raw-button-shortcut",buttonFocusId:eg.wQ,buttonHotkey:r.hotkey,onlyAddHotkeyScopeButton:!0,onButtonClick:async()=>{await ip(d,t)}})]})]})}function iB({isCodeNavOpen:e,setCodeNavOpen:t,size:n,searchingText:i}){let{toggleSymbolsShortcut:r}=(0,v.wk)(),o=!(0,h.ud)().openSymbolsOption.enabled&&!e;return(0,a.jsx)(D.K0,{"aria-label":e?"Close symbols panel":"Open symbols panel",tooltipDirection:"nw","aria-pressed":e,"aria-expanded":e,"aria-controls":"symbols-pane",icon:P.CodeSquareIcon,className:(0,nu.$)(o&&i?"react-button-with-indicator":"",nL.IconButton_2),"data-hotkey":r.hotkey,onClick:()=>{(0,eT.Ov)(!0),t(!e)},variant:"invisible","data-testid":"symbols-button",id:"symbols-button",size:n})}function iT({hotkey:e,onActivate:t}){return(0,a.jsx)(x._,{buttonFocusId:eg.wQ,buttonHotkey:e,onButtonClick:t})}try{iC.displayName||(iC.displayName="BlobViewHeader")}catch{}try{iS.displayName||(iS.displayName="EditMenu")}catch{}try{iI.displayName||(iI.displayName="RawGroup")}catch{}try{iB.displayName||(iB.displayName="SymbolsButton")}catch{}try{iT.displayName||(iT.displayName="KeyboardShortcut")}catch{}var iL=n(67941),iA=n(39619),iD=n(68911),iO=n(69726);let iE={definitions:void 0,localReferences:void 0,crossReferences:void 0,error:!1};var iR=n(73342),iz=n(56677);function iF({reference:e,isHighlighted:t,href:n,onClick:i,role:r,ariaLevel:o,symbol:s,index:l,focusElement:c}){let[d,u]=(0,m.useState)(null);(0,m.useEffect)(()=>{if(c){let e=document.getElementById(`find-in-file-item-${l}`);e&&e.focus()}},[c,l]);let{tabSize:h}=(0,em.A)(),p=(0,eq.bp)(),f=(0,iR.W)(e.highlightedText,e.stylingDirectives,e.bodyText,"plain",h,p);return(0,a.jsx)(D.N_,{as:eZ.N,to:n,role:r,sx:{display:"block",p:0,fontWeight:400,fontSize:"12px",":hover:not([disabled])":{bg:"canvas.default"},":hover":{textDecoration:"none"},'[data-component="text"]':{gridArea:"auto"},gridTemplateAreas:"text",whiteSpace:"break-spaces",verticalAlign:"top",lineHeight:"20px",position:"relative",overflowWrap:"anywhere",fontFamily:"mono",overflow:"visible"},onClick:e=>{e.ctrlKey||e.metaKey||i?.()},onSelect:i,id:`find-in-file-item-${l}`,"aria-current":t?"location":void 0,"aria-level":o,onKeyDown:e=>{"ArrowDown"===e.key?(iP("nextElementSibling"),e.preventDefault()):"ArrowUp"===e.key&&(iP("previousElementSibling"),e.preventDefault())},children:(0,a.jsx)(D.az,{sx:{p:1,py:"5px",...t?{background:"var(--bgColor-attention-muted, var(--color-attention-subtle))",boxShadow:"inset 2px 0 0 var(--bgColor-attention-emphasis, var(--color-attention-fg))"}:{}},children:(0,a.jsxs)("div",{className:"d-flex",children:[(0,a.jsx)(D.az,{className:"text-small blob-num color-fg-muted",sx:{width:"auto",minWidth:"auto"},children:e.lineNumber}),(0,a.jsxs)(D.az,{sx:{overflow:"hidden",whiteSpace:"pre",position:"relative"},children:[null!==d&&(0,a.jsxs)("div",{id:`offset-${e.href(!1)}`,style:{marginLeft:-d},children:[s.length>0&&(0,a.jsx)(iz.U,{symbols:[e],lineNumber:e.lineNumber,sx:{overflow:"initial"},isNotUsingWhitespace:!0}),(0,a.jsx)(eJ.JR,{sx:{position:"relative",width:"100%",overflow:"hidden"},html:f,"aria-current":t?"location":void 0})]}),(0,a.jsx)("span",{ref:e=>{u(e?.offsetWidth??null)},style:{visibility:"hidden",position:"absolute",whiteSpace:"pre"},children:function(e,t){let n=34-e.length,i=t.bodyText.slice(0,t.ident.start.column);if(n<=0)return i;n=Math.max(n/2,n-t.bodyText.slice(t.ident.start.column+e.length).trimEnd().length);let r=i.split(" "),a=[];for(let e=r.length-1;e>=0;e--){let t=r[e];if(a.unshift(t),a.join(" ").length<=n)r.pop();else break}let o=r.join(" "),s=(i.slice(o.length).match(/^[ \t]*/)||[])[0]??"";return`${r.join(" ")}${s}`}(s,e)})]})]})})})}function iP(e){let{activeElement:t}=document,n=t?.[e];if(n)if("treeitem"!==n.role&&"nextElementSibling"===e){let e=n.querySelector('[role="treeitem"]');e?.focus()}else n.focus()}try{iF.displayName||(iF.displayName="CodeNavCell")}catch{}function i$({results:e,repo:t,filePath:n,highlightedIndex:i,isDefinition:r,onClick:o,offset:l,initiallyExpanded:c,enableExpandCollapse:d,symbol:u,setFocusOnFile:h}){let p=!!(0,eh.O)(),[f,x]=(0,m.useState)(c),y=(0,s.t)(),{path:b}=(0,_.eu)(),g=m.useRef(null),[j,v]=(0,m.useState)(!1),w=(0,eT.DC)(),N=e.slice(0,10),k=e.length>10?e.slice(10):[],{sendRepoClickEvent:C}=(0,R.T)(),S=y.ownerLogin===t.ownerLogin&&y.name===t.name,I=(0,m.useCallback)(e=>{"Enter"===e.key||" "===e.key?(x(!f),e.preventDefault()):"ArrowLeft"===e.key?x(!1):"ArrowRight"===e.key?(x(!0),f&&g.current?.focus()):"ArrowDown"===e.key?(iP("nextElementSibling"),e.preventDefault()):"ArrowUp"===e.key&&(iP("previousElementSibling"),e.preventDefault())},[f]);(0,m.useEffect)(()=>{i&&i>=10+l&&v(!0)},[i,l]),(0,m.useEffect)(()=>{h&&w&&g.current?.focus()},[h,w]),(0,m.useEffect)(()=>{w||document.getElementById(eg.wQ)?.focus()},[w]);let B=`${n}-${r?"definition":"reference"}-group`;return(0,a.jsxs)("div",{children:[(0,a.jsxs)(D.az,{sx:{fontSize:0,px:3,py:2,display:"flex",justifyContent:"space-between",borderTop:"1px solid",borderColor:"border.muted",cursor:d?"pointer":"auto"},onClick:d?()=>x(!f):void 0,onKeyDown:I,ref:g,children:[(0,a.jsxs)(D.az,{sx:{display:"flex"},children:[r&&y.id!==t.id&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(eX.r,{square:!0,src:t.ownerAvatar,sx:{mr:2,backgroundColor:"#FFFFFF"},size:16}),(0,a.jsx)(D.az,{sx:{fontWeight:"600",mr:1},children:t.name})]}),(0,a.jsxs)(D.az,{as:"button","aria-expanded":f,"aria-controls":B,sx:{fontWeight:"400",color:"fg.muted",display:"flex",flexDirection:"row",backgroundColor:"canvas.default",border:"none",padding:0},children:[d&&(0,a.jsx)($.A,{"aria-hidden":"true",icon:f?P.ChevronDownIcon:P.ChevronRightIcon}),(0,a.jsx)(D.az,{sx:{display:"table",width:"100%",tableLayout:"fixed"},children:(0,a.jsxs)(D.PA,{"aria-label":`${r?"Definitions":"References"} in ${n!==b?n:"this file"}`,title:n,sx:{direction:"rtl",maxWidth:"100%",pl:2,display:"table-cell",textAlign:"left"},children:["\u200E",S&&n===b?"In this file":n,"\u200E"]})})]})]}),e&&!f&&(0,a.jsx)(D.$c,{sx:{ml:2},children:e.length})]}),f&&(0,a.jsxs)(D.az,{"aria-label":`Results in ${n!==b?n:"this file"}`,id:B,sx:{overflowX:"hidden"},role:"group",className:"code-nav-file-information",children:[N.map((e,t)=>(0,a.jsx)(iF,{reference:e,isHighlighted:i===t+l,href:e.href(p),onClick:()=>{o&&o(t+l),C("BLOB_SYMBOLS_MENU.SYMBOL_DEFINITION_CLICK")},symbol:u,index:t+l},`codeNavigation${t+l}`)),j&&k.map((e,t)=>(0,a.jsx)(iF,{reference:e,isHighlighted:i===t+l+10,href:e.href(p),onClick:()=>{o&&o(t+l+10),C("BLOB_SYMBOLS_MENU.SYMBOL_DEFINITION_CLICK")},symbol:u,index:t+l+10,focusElement:0===t},`codeNavigation${t+l+10}`)),k.length>0&&(0,a.jsx)(D.az,{sx:{px:3,pt:1,pb:2,fontSize:0,color:"fg.muted",borderColor:"border.muted"},children:(0,a.jsx)(D.$n,{leadingVisual:j?P.FoldIcon:P.UnfoldIcon,onClick:()=>v(!j),sx:{color:"fg.default"},variant:"invisible",size:"small","aria-selected":!1,children:j?"Show less":"Show more"})})]})]},n)}try{i$.displayName||(i$.displayName="CodeNavFileInformation")}catch{}function iM({definitions:e,references:t,highlightedIndex:n,initiallyExpanded:i,enableExpandCollapse:r,onClick:o,symbol:s,setFocusOnFile:l}){let c=(0,m.useMemo)(()=>{let n={};if(e)for(let t of e){let e=t.pathKey();n[e]||(n[e]=[]),n[e].push(t)}else if(t)for(let e of t){let t=e.pathKey();n[t]||(n[t]=[]),n[t].push(e)}return n},[e,t]),d=0;return(0,a.jsx)(a.Fragment,{children:Object.keys(c).map((t,u)=>{let h=c[t],m=(0,a.jsx)(i$,{repo:h[0].repo,filePath:h[0].path,results:h,highlightedIndex:n,isDefinition:void 0!==e&&e.length>0,onClick:o,offset:d,initiallyExpanded:i,enableExpandCollapse:r,symbol:s,setFocusOnFile:0===u&&l},t);return d+=h.length,m})})}try{iM.displayName||(iM.displayName="CodeNavInfoPanelData")}catch{}let iW=(0,m.lazy)(()=>n.e("app_assets_modules_react-code-view_components_blob_BlobContent_CodeNav_ScrollMarks_tsx").then(n.bind(n,27538)));function iH({codeNavInfo:e,selectedText:t,lineNumber:n,offset:i,onClose:r,onBackToSymbol:o,onSymbolSelect:l,isLoading:c,setSearchResults:d,setFocusedSearchResult:u}){let{findNextShortcut:h,findPrevShortcut:p}=(0,v.wk)(),f=!!(0,eh.O)(),{definitions:x,localReferences:y,crossReferences:b,error:g}=function(e,t,n,i){let[r,a]=(0,m.useState)(iE);return(0,m.useEffect)(()=>{(async()=>{if(n<0||i<0)return;let{definitions:r,localReferences:o,crossReferences:s,setLoading:l}=e.getDefinitionsAndReferences(t,n,i);a(iE);try{let e=await r;a({definitions:e,localReferences:void 0,crossReferences:void 0,error:!1}),l(!1);let[t,n]=await Promise.all([o,s]);a({definitions:e,localReferences:t,crossReferences:n,error:!1})}catch{a({...iE,error:!0})}finally{l(!1)}})()},[e,t,n,i]),r}(e,t,n,i),{copilotAccessAllowed:j}=(0,_.eu)(),[w,N]=(0,m.useState)(-1),[k,C]=(0,m.useState)(!1),S=(0,s.t)(),I=(0,m.useMemo)(()=>x?.definitions||[],[x?.definitions]),B=(0,m.useMemo)(()=>y?.references||[],[y]),T=(0,m.useMemo)(()=>b?.references||[],[b?.references]),L=I.length,A=B.length+T.length,O=(0,ey.Z)(),E=I.length>0?I[0]:void 0,R=T.map(e=>e.path).filter((e,t,n)=>n.indexOf(e)===t),z=k?A:B.length,F=(0,m.useRef)(null),{language:$,languageID:W}=(0,em.A)(),H=(0,m.useMemo)(()=>({type:"symbol",kind:"codeNavSymbol",name:t,languageID:W,languageName:$,codeNavDefinitions:I.map(e=>({ident:e.ident,extent:e.extent,kind:e.kind.fullName,fullyQualifiedName:e.fullyQualifiedName,ref:iU(e.refInfo),commitOID:e.refInfo.currentOid,repoID:e.repo.id,repoName:e.repo.name,repoOwner:e.repo.ownerLogin,path:e.path})),codeNavReferences:[...B.map(e=>({ident:e.ident,path:e.path,ref:iU(e.refInfo),commitOID:e.refInfo.currentOid,repoID:e.repo.id,repoName:e.repo.name,repoOwner:e.repo.ownerLogin})),...T.map(e=>({ident:e.ident,path:e.path,ref:iU(e.refInfo),commitOID:e.refInfo.currentOid,repoID:e.repo.id,repoName:e.repo.name,repoOwner:e.repo.ownerLogin}))]}),[T,I,$,W,B,t]);(0,m.useEffect)(()=>{E&&E.repo.name===e.repo.name&&E.path===e.path?d([E,...B]):d(B),u(void 0),window.dispatchEvent(new iA.Xr(H))},[e.path,e.repo.name,E,B,t,d,u,H]),(0,M.Gp)(e=>{e||F.current?.focus()}),(0,m.useEffect)(()=>{N(-1)},[t]),(0,m.useEffect)(()=>{C(R.length>0&&R.length<=5)},[R.length]);let V=({index:e,direction:t,navigate:n})=>{if(void 0!==e){let t=e>=L?B[e-L]:I[e];N(e),n&&O(t.href(f)),(0,e_.f)({line:t.lineNumber,column:t.ident.start.column})}if(void 0!==t){let e=Math.max(L,w+t),i=B[e-L];e0?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(iV,{headerText:I.length>1?"Definitions":"Definition",searchType:x?.backend==="precise"?"Precise":"Search"}),(0,a.jsx)("div",{children:I&&(0,a.jsx)(iM,{definitions:I,onClick:e=>{V({index:e})},highlightedIndex:w,initiallyExpanded:!0,enableExpandCollapse:I.length>1,symbol:t,setFocusOnFile:!0},"definitions")})]}):null,!c&&(B.length>0||T.length>0)&&(0,a.jsx)(iV,{headerText:`${z} ${z>1?"References":"Reference"}`,searchType:"Search",sx:{justifyContent:"space-between"},children:(0,a.jsxs)(D.az,{sx:{display:"float",float:"right",mr:"-6px"},children:[(0,a.jsx)(D.K0,{unsafeDisableTooltip:!0,"aria-label":"Previous reference","data-hotkey":p.hotkey,onClick:()=>V({direction:-1,navigate:!0}),sx:{mr:2,cursor:"pointer",color:"fg.muted"},disabled:w<=I.length,icon:P.ChevronUpIcon,variant:"invisible",size:"small"}),(0,a.jsx)(D.K0,{unsafeDisableTooltip:!0,"aria-label":"Next reference","data-hotkey":h.hotkey,onClick:()=>V({direction:1,navigate:!0}),sx:{cursor:"pointer",color:"fg.muted"},disabled:w>=B.length+I.length-1,icon:P.ChevronDownIcon,variant:"invisible",size:"small"}),(0,a.jsx)("button",{hidden:!0,"data-hotkey":h.hotkey,onClick:()=>V({direction:1,navigate:!0}),"data-testid":"find-next-button"}),(0,a.jsx)("button",{hidden:!0,"data-hotkey":p.hotkey,onClick:()=>V({direction:-1,navigate:!0}),"data-testid":"find-prev-button"})]})}),g&&(0,a.jsx)(D.az,{sx:{p:3,fontWeight:"400",color:"fg.muted"},children:"No references found"}),!c&&B.length>0&&(0,a.jsx)(iM,{initiallyExpanded:!0,enableExpandCollapse:!0,references:B,highlightedIndex:w-L,onClick:e=>{V({index:L+e})},symbol:t,setFocusOnFile:!(I&&I.length>0)},"referencesInfoBox"),!c&&k&&(0,a.jsx)(iM,{initiallyExpanded:!1,enableExpandCollapse:!0,references:T,symbol:t},"crossReferencesInfoBox"),0===B.length&&0===I.length&&!g&&!c&&(0,a.jsx)(D.az,{sx:{p:3,fontWeight:"400",color:"fg.muted"},children:"No definitions or references found"}),(0,a.jsxs)(D.az,{sx:{px:2,py:2,fontSize:0,color:"fg.muted",borderTop:"1px solid",borderColor:"border.muted"},children:[R.length>5&&(0,a.jsx)(D.$n,{leadingVisual:k?P.FoldIcon:P.UnfoldIcon,sx:{color:"fg.default",mb:2},variant:"invisible",size:"small",onClick:()=>C(!k),children:k?"Show less":"Show more"}),(0,a.jsx)(D.$n,{as:en.A,leadingVisual:P.SearchIcon,sx:{color:"fg.default"},variant:"invisible",size:"small",href:(0,et.Y8Y)({owner:S.ownerLogin,repo:S.name,searchTerm:t}),children:"Search for this symbol"})]}),(0,a.jsx)(m.Suspense,{fallback:null,children:(0,a.jsx)(iW,{definitionsOrReferences:[...I,...B]})})]})}function iV({headerText:e,searchType:t,sx:n,children:i}){return(0,a.jsxs)(D.az,{sx:{fontSize:"14px",px:3,py:2,fontWeight:"600",backgroundColor:"canvas.subtle",borderTop:"1px solid",borderColor:"border.muted",height:"36px",display:"flex",flexDirection:"row",alignItems:"center",...n},children:[(0,a.jsxs)(D.DZ,{as:"h3",sx:{fontSize:"12px",fontWeight:"semibold",color:"fg.muted"},children:[e,(0,a.jsx)(D.EY,{sx:{ml:2,fontWeight:"light"},children:t})]}),i]})}function iG({currentSymbol:e,selectedText:t,codeNavInfo:n,onSymbolSelect:i,children:r}){let o=e?.fullyQualifiedName??t,s=o.split(/(\W+)/).map(e=>{let t=/^\W+$/.test(e),i=t?[]:n.getLocalDefinitions(e,!0),r=1===i.length?i[0]:void 0,a=r?.kind.plColor;return{text:e,symbol:r,symbolColor:a,isSeparator:t}});return(0,a.jsxs)(D.az,{as:"h3",sx:{display:"flex",flexDirection:"column",flexGrow:1,alignContent:"start",fontWeight:400,fontSize:1,fontFamily:"mono",flexWrap:"wrap",minWidth:0,verticalAlign:"center",gap:2,px:3},"aria-label":`${e?.kind.fullName||""} ${o}`.trimStart(),children:[e&&(0,a.jsxs)(D.az,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",flexGrow:1,width:"100%"},children:[(0,a.jsx)(V,{symbolKind:e.kind,showFullSymbol:!0}),r]}),(0,a.jsxs)(D.PA,{title:o,sx:{maxWidth:290,mt:"3px",direction:"rtl",alignSelf:"start"},inline:!0,children:["\u200E",s.map((e,t)=>{let n=e.symbol?{all:"unset",cursor:"pointer","&:hover":{backgroundColor:"attention.muted"}}:{};return(0,a.jsx)(D.az,{as:"span",role:"button",tabIndex:e.isSeparator?-1:0,sx:{...n,color:e.symbolColor,direction:"ltr"},onClick:()=>e.symbol?i(e.symbol):void 0,onKeyDown:t=>{e.symbol&&["Enter","Space"].includes(t.code)&&i(e.symbol)},children:e.text},`${e.text}-${t}`)}),"\u200E"]})]})}function iU(e){return e.name===e.currentOid?e.currentOid:"tree"===e.refType?`refs/heads/${e.name}`:(0,iD.D7)(e.name,e.refType??"branch")}try{iW.displayName||(iW.displayName="ScrollMarks")}catch{}try{iH.displayName||(iH.displayName="CodeNavSymbolDetails")}catch{}try{iV.displayName||(iV.displayName="CodeNavSymbolSectionHeader")}catch{}try{iG.displayName||(iG.displayName="CodeNavSymbolDefinitionHeader")}catch{}function iK({selectedText:e,showCodeNavWithSymbol:t,lineNumber:n,offset:i,onClose:r,onClear:o,codeNavInfo:l,isLoading:c,setSearchResults:d,setFocusedSearchResult:u,autoFocusSearch:h}){function p(e){t(e),x(!1)}let[f,x]=(0,m.useState)(!e);(0,M.Gp)(e=>{e&&(o(),x(!0),d([]))});let{refInfo:y,path:b}=(0,_.eu)(),g=(0,s.t)(),{language:j,languageID:v,displayUrl:w}=(0,em.A)(),N=(0,m.useMemo)(()=>({type:"file",languageID:v,languageName:j,path:b,ref:(0,iD.D7)(y.name,y.refType),commitOID:y.currentOid,repoID:g.id,repoName:g.name,repoOwner:g.ownerLogin,url:w}),[v,j,b,y.name,y.refType,y.currentOid,g.id,g.name,g.ownerLogin,w]);return(0,m.useEffect)(()=>{e?x(!1):f||(window.dispatchEvent(new iA.Xr(N)),x(!0))},[e,l]),(0,a.jsx)("div",{id:"symbols-pane",children:f?l?(0,a.jsx)(ea,{treeSymbols:l.symbolTree,onSymbolSelect:p,codeSymbols:l.symbols,onClose:r,autoFocusSearch:h}):(0,a.jsx)("div",{children:"Click on a symbol to see code navigation data"}):(0,a.jsx)(iH,{codeNavInfo:l,selectedText:e,lineNumber:n,offset:i,onBackToSymbol:()=>{o(),x(!0),d([]),window.dispatchEvent(new iA.Xr(N))},onClose:()=>{r(),o(),d([]),window.dispatchEvent(new iA.Xr(N))},onSymbolSelect:p,isLoading:c,setSearchResults:d,setFocusedSearchResult:u})})}try{iK.displayName||(iK.displayName="CodeNavInfoPanel")}catch{}var iq=n(40023);let iY=m.memo(iQ);function iQ(e){let{...t}=e,[n,i]=m.useState(!1),{screenSize:r}=(0,u.lm)();return m.useEffect(()=>{i(rt.setOpenPanel(void 0),renderHeader:()=>null,renderBody:()=>iX({...t})})]})}function iX({stickySx:e,stickyHeaderRef:t,openPanel:n,isCodeNavLoading:i,codeNavInfo:r,setOpenPanel:o,showCodeNavWithSymbol:s,searchingText:l,setSearchingText:c,setSearchTerm:d,setSearchResults:u,setFocusedSearchResult:h,autoFocusSearch:m,className:p}){let{headerInfo:{toc:f}}=(0,em.A)(),x=ek(t);return(0,a.jsx)(iq.Z,{sx:{...e,...x?{borderRadius:"0px 0px 6px 6px",borderTop:0}:{}},className:`panel-content-narrow-styles ${p||""}`,children:"toc"===n?(0,a.jsx)(iL.A,{toc:f,onClose:()=>{o(void 0)}}):"codeNav"===n&&(0,a.jsx)(iK,{codeNavInfo:r,showCodeNavWithSymbol:s,selectedText:l.selectedText,lineNumber:l.lineNumber-1,offset:l.offset,onClose:()=>{o(void 0),localStorage.setItem("codeNavOpen",""),eB(null,!1,null),document.getElementById("symbols-button")?.focus()},isLoading:i,onClear:()=>c({selectedText:"",lineNumber:0,offset:-1}),setSearchTerm:d,setSearchResults:u,setFocusedSearchResult:h,autoFocusSearch:m})})}try{iY.displayName||(iY.displayName="PanelContent")}catch{}try{iQ.displayName||(iQ.displayName="PanelContentUnmemoized")}catch{}try{iX.displayName||(iX.displayName="InnerPanelContent")}catch{}function iZ({blame:e,blob:t,searchTerm:n,setSearchTerm:i,symbolsExpanded:r,setValidCodeNav:o,showTree:c,treeToggleElement:d,validCodeNav:p,copilotInfo:f}){let{path:x}=(0,_.eu)(),y=t.symbolsEnabled,b=(0,m.useRef)(null),g=eC(),[v,w]=(0,m.useState)(!1),{openPanel:N,setOpenPanel:k}=(0,j.Ak)(),C=(0,m.useRef)(null),S=(0,h.ud)().openSymbolsOption.enabled&&y,{screenSize:I}=(0,u.lm)();(0,M.Gp)(e=>{e&&w(!0)});let{sendRepoClickEvent:B}=(0,R.T)(),T=(0,m.useRef)(!0);function L(){window.scrollY<300&&E(null,!0)}(0,m.useEffect)(()=>{T.current?(T.current=!1,H.selectedText&&!N&&S&&r&&z()):(E(null,!0),i(""),w(!1),V({selectedText:"",lineNumber:-1,offset:0}))},[x]),(0,m.useEffect)(()=>(window.addEventListener("scroll",L),()=>{window.removeEventListener("scroll",L)}),[]);let A=!!(0,eh.O)(),{currentStickyLines:O,setStickyLines:E}=function(){let[e,t]=(0,m.useState)(()=>new Map),n=(0,m.useCallback)((n,i)=>{let r=!1;if(null===n&&0===e.size)return;if(null===n&&i){e.clear(),t(new Map(e));return}if(!n)return;let a=n.lineNumber;if(i&&e.has(a)?(e.delete(a),r=!0):i||e.has(a)||(e.set(a,n),r=!0),e.has(a))for(let[t]of e){let n=e.get(t);(!n.ownedSection||n.ownedSection.endLine{!A&&S&&(k("codeNav"),B("BLOB_SYMBOLS_MENU.OPEN_WITH_SYMBOL"),localStorage.setItem("codeNavOpen","codeNav"),eB(null,!0,null))},[A,S,k,B]),{isCodeNavLoading:F,codeNavInfo:P,showCodeNavWithSymbol:$,showCodeNavForToken:W,searchingText:H,setSearchingText:V}=function(e,t,n,i,r){let a=(0,ey.Z)(),o=(0,s.t)(),c=(0,l.i)(),{refInfo:d,path:u}=(0,_.eu)(),[h,p]=(0,m.useState)(!1),f=(0,m.useMemo)(()=>e.stylingDirectives?.map(e=>(0,ex.M)(e)),[e.stylingDirectives]),[x]=(0,ey.o)(),y="1"===x.get("plain"),b=(0,m.useMemo)(()=>{n(!0);try{return new ef.Op(o,d,u,!!c,e.rawLines||[],e.symbols?.symbols??[],f,e.language,y,p)}catch{n(!1)}},[n,o,d,u,c,e.rawLines,e.symbols?.symbols,e.language,f,y]),[g,j]=(0,m.useState)(()=>{let t=(0,eb.$c)(i);if(!t.blobRange?.start?.line)return{selectedText:"",lineNumber:-1,offset:0};if(!r&&t.blobRange.start.line===t.blobRange.end.line&&null!==t.blobRange.start.column&&null!==t.blobRange.end.column&&t.blobRange.end.column-t.blobRange.start.column>2&&e.stylingDirectives&&e.stylingDirectives[t.blobRange.start.line-1]?.length&&b?.blobLines[t.blobRange.start.line-1]){let e=b.blobLines[t.blobRange.start.line-1]?.substring(t.blobRange.start.column-1,t.blobRange.end.column-1),n=f[t.blobRange.start.line-1]?.find(e=>e.s===t.blobRange.start.column-1&&e.e===t.blobRange.end.column-1);return e&&n&&(0,eg.Bm)(e,n.c)?{selectedText:e,lineNumber:t.blobRange.start.line,offset:t.blobRange.start.column}:{selectedText:"",lineNumber:-1,offset:0}}if(!i||!b||r)return{selectedText:"",lineNumber:-1,offset:0};{let e=b.getSymbolOnLine(Number(i.substring(2)));return e?{selectedText:e.name,lineNumber:e.lineNumber,offset:e.ident.start.column}:{selectedText:"",lineNumber:-1,offset:0}}});return{isCodeNavLoading:h,codeNavInfo:b,showCodeNavWithSymbol:(0,m.useCallback)(e=>{j({selectedText:e.name,lineNumber:e.lineNumber,offset:e.ident.start.column}),t(),a(e.href()),(0,e_.f)({line:e.lineNumber})},[t,a]),showCodeNavForToken:(0,m.useCallback)(e=>{j(e),t()},[t]),setSearchingText:j,searchingText:g}}(t,z,o,eu.fV.hash,A),{searchStatus:G,searchResults:U,setSearchResults:K,focusedSearchResult:q,setFocusedSearchResult:Y}=function(e,t){let{findInFileWorkerPath:n}=(0,_.sq)(),[i,r]=(0,m.useState)([]),[a,o]=(0,m.useState)(void 0),[s,l]=(0,m.useState)("done"),c=m.useRef(),{refInfo:d,path:u}=(0,_.eu)();!c.current&&t&&(c.current=new ev.N(new ej.z(n,ew),200,e=>1!==e.query.length));let h=(0,m.useRef)(t);h.current=t;let p=(0,m.useRef)("");(0,m.useEffect)(()=>function(){c.current?.terminate()},[]);let f=(0,m.useRef)(void 0);return c.current&&e!==f.current&&(c.current.onResponse=t=>{t.query===h.current&&(o(0),r(e?.createReferences(t.ranges)||[]),l("done"),p.current=h.current)},f.current=e),(0,m.useEffect)(()=>{if(!e||!c.current||!p.current||""===p.current){r([]),o(0),l("done");return}r([]),o(0),l("pending"),c.current.post({query:p.current,lines:e.blobLines,currentCodeReferences:void 0})},[d.name,u]),(0,m.useEffect)(()=>{if(e&&c.current)if(""===t)r([]),o(0),l("done"),p.current="";else{var n;if(p.current===t||!((n=t).length>0&&n.length<=1e3))return;l("pending");let r=p.current.length>0&&t.startsWith(p.current);c.current.post({query:t,lines:e.blobLines,currentCodeReferences:r?i:void 0})}},[t]),{focusedSearchResult:a,setFocusedSearchResult:o,searchResults:i,setSearchResults:r,searchStatus:s}}(P,n),{headerInfo:{toc:Q}}=t,X=(0,m.useMemo)(()=>({value:!1}),[P]);X.value=!N||X.value;let Z=void 0!==N&&P&&p&&!(0===P.symbols.length&&"codeNav"===N&&!X.value)&&!(!Q&&"toc"===N)&&"edit"!==N&&!(!y&&"codeNav"===N),J=Z?N:void 0;return(0,m.useEffect)(()=>{N&&!Z&&k(void 0)},[N,k,Z]),(0,m.useEffect)(()=>{try{(0,ed.BI)("blob-size",{lines:t.stylingDirectives?.length,truncatedSloc:t.headerInfo?.lineInfo.truncatedSloc,truncatedLoc:t.headerInfo?.lineInfo.truncatedLoc,length:t.rawLines?.reduce((e,t)=>e+t.length,0)??0,humanLength:t.headerInfo?.blobSize})}catch{}},[t]),(0,a.jsx)(em.s,{blob:t,children:(0,a.jsx)(eh.k,{blame:e,children:(0,a.jsxs)(ep.EN,{children:[P&&(0,a.jsx)(iJ,{codeNavInfo:P}),(0,a.jsx)(el.D,{}),(0,a.jsxs)(D.az,{sx:{display:"flex",flexDirection:"row"},children:[(0,a.jsxs)(D.az,{className:"container",sx:{width:"100%",height:"fit-content",minWidth:0,mr:J&&P&&I>u.Gy.medium?3:0},children:[(0,a.jsxs)(D.az,{sx:{height:"40px",pl:1,pb:3},className:"react-code-size-details-banner",children:[(0,a.jsx)(nY,{className:"react-code-size-details-banner"}),(0,a.jsx)(ec.E,{copilotInfo:f,className:"react-code-size-details-banner",view:e?"blame":"preview"})]}),(0,a.jsx)(D.az,{className:"react-blob-view-header-sticky",sx:g,id:eN.Us,ref:b,children:(0,a.jsx)(iC,{currentStickyLines:O,focusedSearchResult:q,openPanel:J,searchingText:H,searchResults:U,searchTerm:n,setFocusedSearchResult:Y,setOpenPanel:k,setSearchTerm:i,showTree:c,stickyHeaderRef:b,treeToggleElement:d,validCodeNav:p,copilotInfo:f,colorizedLines:t.colorizedLines})}),(0,a.jsx)(D.az,{sx:{border:"1px solid",borderTop:"none",borderColor:"border.default",borderRadius:"0px 0px 6px 6px",minWidth:"273px"},children:(0,a.jsx)(tX,{blobLinesHandle:C,setOpenPanel:k,validCodeNav:p,codeNavInfo:P,onCodeNavTokenSelected:W,onLineStickOrUnstick:E,searchResults:U,setSearchTerm:i,focusedSearchResult:q})})]}),J&&P?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(D.az,{sx:{pb:"33px"}}),(0,a.jsx)(iY,{stickySx:g,stickyHeaderRef:b,openPanel:J,isCodeNavLoading:F,codeNavInfo:P,setOpenPanel:k,showCodeNavWithSymbol:$,searchingText:H,setSearchingText:V,searchTerm:n,searchResults:U,searchStatus:G,setSearchResults:K,setSearchTerm:i,setFocusedSearchResult:Y,autoFocusSearch:v})]}):null]})]})})})}function iJ({codeNavInfo:e}){let{sendRepoKeyDownEvent:t}=(0,R.T)(),{findSymbolShortcut:n}=(0,v.wk)(),{setOpenPanel:i}=(0,j.Ak)();return 0===e.symbols.length?null:(0,a.jsx)(x._,{buttonFocusId:eg.wQ,buttonHotkey:n.hotkey,onButtonClick:()=>{i("codeNav"),(0,M.DE)(),t("FIND_SYMBOL")}})}try{iZ.displayName||(iZ.displayName="BlobViewContent")}catch{}try{iJ.displayName||(iJ.displayName="FindSymbolShortcut")}catch{}var i0=n(74459),i1=n(10677),i2=n(72511);let i4={Flash:"BlameBanners-module__Flash--uicsZ",Box:"BlameBanners-module__Box--m11g9"};function i3(){let e=(0,d.B)(),t="blame"in e?e.blame:void 0;return(0,a.jsxs)(eh.k,{blame:t,children:[(0,a.jsx)(i5,{}),(0,a.jsx)(i7,{})]})}function i5(){let e=(0,s.t)(),t=(0,_.eu)().refInfo.name,n=(0,eh.O)(),[i,r]=m.useState(!0);if(!n)return null;let o=n?.ignoreRevs,l=n?.errorType;return l?(0,a.jsx)(a.Fragment,{children:i&&(0,a.jsxs)(i2.A,{variant:"warning",className:i4.Flash,children:[(0,a.jsx)($.A,{icon:P.InfoIcon}),(0,a.jsx)(i6,{blameErrorType:l,renderIgnoreRefsLink:()=>(0,a.jsx)(eZ.N,{to:(0,et.nD_)({repo:e.name,owner:e.ownerLogin,commitish:t,filePath:o.path}),children:o.path})}),(0,a.jsx)("div",{onClick:()=>r(!1),className:i4.Box,children:(0,a.jsx)($.A,{icon:P.XIcon})})]})}):null}function i6({blameErrorType:e,renderIgnoreRefsLink:t}){switch(e){case"invalid_ignore_revs":return(0,a.jsxs)("span",{children:["Your ",t()," file is invalid."]});case"ignore_revs_too_big":return(0,a.jsxs)("span",{children:["Your ",t()," file is too large."]});case"symlink_disallowed":return(0,a.jsx)("span",{children:"Symlinks are not supported."});case"blame_timeout":return(0,a.jsx)("span",{children:"Your blame took too long to compute."});default:eR(e)}}function i7(){let e=(0,s.t)(),t=(0,_.eu)().refInfo.name,n=(0,eh.O)()?.ignoreRevs,[i,r]=m.useState(!0);if(!n?.present)return null;let o=(0,a.jsx)(eZ.N,{to:(0,et.nD_)({repo:e.name,owner:e.ownerLogin,commitish:t,filePath:n.path}),children:n.path});return(0,a.jsx)(a.Fragment,{children:i&&(0,a.jsxs)(i2.A,{className:i4.Flash,children:[(0,a.jsx)($.A,{icon:P.InfoIcon}),n.timedOut?(0,a.jsxs)("span",{children:["Failed to ignore revisions in ",o,"."]}):(0,a.jsxs)("span",{children:["Ignoring revisions in ",o,"."]}),(0,a.jsx)("div",{onClick:()=>r(!1),className:i4.Box,children:(0,a.jsx)($.A,{icon:P.XIcon})})]})})}try{i3.displayName||(i3.displayName="BlameBanners")}catch{}try{i5.displayName||(i5.displayName="BlameErrorBanner")}catch{}try{i6.displayName||(i6.displayName="BlameErrorText")}catch{}try{i7.displayName||(i7.displayName="IgnoreRevsBanner")}catch{}var i8=n(71467);let i9={Flash:"BlobLowerBanners-module__Flash--idYKd"};var re=n(87011);let rt={Flash:"DiscussionTemplateBanner-module__Flash--SIEaS"};function rn({errors:e}){if(!e||0===e.length)return null;let t=[];return 1===e.length?t.push("Learn more about this error."):e.map((e,n)=>{t.push(`Learn more about error ${n+1}.`)}),(0,a.jsxs)(i2.A,{variant:"danger",className:rt.Flash,children:[(0,a.jsxs)("p",{children:[(0,a.jsx)($.A,{icon:P.AlertIcon}),(0,a.jsxs)("strong",{children:["There ",1===e.length?"is a problem":"are some problems"," with this template"]})]}),e.map((e,n)=>(0,a.jsxs)("p",{children:[(0,a.jsx)(eJ.JR,{html:e.message}),". ",(0,a.jsx)(en.A,{href:e.link,target:"_blank",children:t[n]})]},`error-${n}`))]})}try{rn.displayName||(rn.displayName="DiscussionTemplateBanner")}catch{}var ri=n(54589),rr=n(84078);let ra={Label:"IssueTemplateBanner-module__Label--GTasc",Banner:"IssueTemplateBanner-module__Banner--kvXxt"};function ro(e){let t,{issueTemplate:n,showIssueFormWarning:i,isValidLegacyIssueTemplate:r,helpUrl:o,isLoggedIn:s}=e;if(!s||!n&&!r&&!i)return null;let l=(0,no.G7)("lifecycle_label_name_updates"),c=null,d="Info",u=[];return n?!1===n.valid?(t="critical",d="Critical",n.errors&&(1===n.errors.length?u.push("Learn more about this error."):n.errors.map((e,t)=>{u.push(`Learn more about error ${t+1}.`)})),c=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("p",{children:[(0,a.jsx)($.A,{icon:P.AlertIcon}),(0,a.jsxs)("strong",{children:["There ",n.errors?.length===1?"is a problem":"are some problems"," with this template"]})]}),n.errors?.map((e,t)=>(0,a.jsxs)("p",{children:[(0,a.jsx)(eJ.JR,{html:e.message}),". ",(0,a.jsx)(en.A,{href:e.link,target:"_blank",children:u[t]})]},`error-${t}`))]})):c=n.structured?(0,a.jsxs)(a.Fragment,{children:[l?(0,a.jsx)(ri.X,{className:"mr-2"}):(0,a.jsx)(n_.A,{variant:"success",className:ra.Label,children:"Beta"}),"This file is used as an Issue Form template."," ",(0,a.jsx)("a",{href:"https://github.com/orgs/community/discussions/categories/projects-and-issues",children:"Give Feedback."})]}):"This file is used as a markdown issue template.":i&&(c="Issue form templates are not supported on private repositories.",t="warning",d="Warning"),(0,a.jsxs)(a.Fragment,{children:[(n||i)&&(0,a.jsx)(rr.l,{title:d,variant:t,className:ra.Banner,children:c}),r&&(0,a.jsx)(rs,{helpUrl:o})]})}function rs({helpUrl:e}){return(0,a.jsxs)(rr.l,{title:"Warning",variant:"warning",className:ra.Banner,children:["You are using an old version of issue templates. Please update to the new issue template workflow."," ",(0,a.jsx)(en.A,{href:`${e}/articles/about-issue-and-pull-request-templates`,target:"_blank",inline:!0,children:"Learn more about issue templates."})]})}try{ro.displayName||(ro.displayName="IssueTemplateBanner")}catch{}try{rs.displayName||(rs.displayName="LegacyIssueTemplateBanner")}catch{}function rl(){let e=(0,s.t)(),t=(0,l.i)(),{refInfo:n,path:i}=(0,_.eu)(),{helpUrl:r}=(0,_.sq)(),{csvError:o,isCodeownersFile:c,publishBannersInfo:{showPublishActionBanner:d,releasePath:u,dismissActionNoticePath:h},discussionTemplate:p,issueTemplate:f,showIssueFormWarning:x,isValidLegacyIssueTemplate:y}=(0,em.A)(),[b,g]=(0,m.useState)([]),[j,v]=(0,m.useState)(re.bN.LOADING),w=(0,m.useRef)(0);return(0,m.useEffect)(()=>{if(!e.currentUserCanPush)return;w.current++;let t=async()=>{try{let t=w.current,r=await (0,re.kz)(e,n,i);if(t(0,re.Ke)(e))),v(re.bN.VALIDATED)}else v(re.bN.ERROR)}catch{v(re.bN.ERROR)}};c&&t()},[c,e,n,i]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i8.A,{showPublishActionBanner:d,releasePath:u,dismissActionNoticePath:h}),(0,a.jsx)(ro,{issueTemplate:f,showIssueFormWarning:x,isValidLegacyIssueTemplate:y,isLoggedIn:!!t,helpUrl:r}),p?.errors&&p.errors.length>0&&(0,a.jsx)(rn,{...p}),(0,a.jsx)(rc,{}),c&&e.currentUserCanPush&&(0,a.jsx)(eV.Provider,{value:b,children:(0,a.jsx)(re.$4,{errors:b,state:j})}),o&&(0,a.jsx)(rd,{csvError:o})]})}function rc(){let{truncated:e,large:t,image:n,renderedFileInfo:i,rawBlobUrl:r}=(0,em.A)();return!e||t||n||i?null:(0,a.jsxs)(i2.A,{className:i9.Flash,children:["This file has been truncated, but you can"," ",(0,a.jsx)(en.A,{inline:!0,href:r,children:"view the full file"}),"."]})}function rd({csvError:e}){return(0,a.jsx)(i2.A,{variant:"warning",className:i9.Flash,children:(0,a.jsx)(eJ.vb,{html:e})})}try{rl.displayName||(rl.displayName="BlobLowerBanners")}catch{}try{rc.displayName||(rc.displayName="TruncatedBanner")}catch{}try{rd.displayName||(rd.displayName="CSVErrorBanner")}catch{}let ru={Box:"BlobLicenseBanner-module__Box--F040L",Box_1:"BlobLicenseBanner-module__Box_1--NN6Gf",Box_2:"BlobLicenseBanner-module__Box_2--hiAjc",Box_3:"BlobLicenseBanner-module__Box_3--pQEZh",Box_4:"BlobLicenseBanner-module__Box_4--yVICK",Box_5:"BlobLicenseBanner-module__Box_5--cMmmH",VerifiedHTMLBox:"BlobLicenseBanner-module__VerifiedHTMLBox--qII3b",Box_6:"BlobLicenseBanner-module__Box_6--H28JJ",Box_7:"BlobLicenseBanner-module__Box_7--sz0ej",Box_8:"BlobLicenseBanner-module__Box_8--cq6OB",Box_9:"BlobLicenseBanner-module__Box_9--UXpn4",Octicon:"BlobLicenseBanner-module__Octicon--oXn77",Box_10:"BlobLicenseBanner-module__Box_10--qbVGR"};function rh(){let{license:e}=(0,nK.Y_)(),t=(0,s.t)(),{helpUrl:n}=(0,_.sq)(),i={permissions:{icon:P.CheckIcon,color:"success.fg"},limitations:{icon:P.XIcon,color:"danger.fg"},conditions:{icon:P.InfoIcon,color:"accent.fg"}};return e?(0,a.jsxs)("div",{className:ru.Box,children:[(0,a.jsxs)("div",{className:(0,nu.$)("blob-license-banner-outer",ru.Box_1),children:[(0,a.jsxs)("div",{className:ru.Box_2,children:[(0,a.jsxs)("div",{className:ru.Box_3,children:[(0,a.jsx)(nU.m4,{icon:P.LawIcon,size:32}),(0,a.jsxs)("div",{className:ru.Box_4,children:[(0,a.jsxs)("div",{className:ru.Box_5,children:[`${t.ownerLogin}/${t.name} is licensed under`," ",e.name.toLowerCase().startsWith("the ")?"":" the"]}),(0,a.jsx)("h3",{children:e.name})]})]}),(0,a.jsx)(eJ.vb,{html:e.description,className:ru.VerifiedHTMLBox})]}),(0,a.jsx)("div",{className:ru.Box_6,children:Object.keys(e.rules).map((t,n)=>(0,a.jsxs)("div",{className:ru.Box_7,children:[(0,a.jsx)("h5",{className:ru.Box_8,children:t.charAt(0).toUpperCase()+t.substring(1)}),e.rules[t].map(e=>(0,a.jsxs)("div",{className:ru.Box_9,children:[(0,a.jsx)(nU.m4,{icon:i[t].icon,size:13,sx:{color:i[t].color},className:ru.Octicon}),e.label]},e.tag))]},n))})]}),(0,a.jsxs)("div",{className:ru.Box_10,children:["This is not legal advice.\xa0",(0,a.jsx)(en.A,{inline:!0,href:`${n}/articles/licensing-a-repository/#disclaimer`,children:"Learn more about repository licenses"})]})]}):null}try{rh.displayName||(rh.displayName="BlobLicenseBanner")}catch{}let rm={Flash:"InvalidCitationWarning-module__Flash--k8ISS"};function rp({citationHelpUrl:e}){return(0,a.jsxs)(i2.A,{variant:"warning",className:rm.Flash,children:["Your ",(0,a.jsx)("strong",{children:"CITATION.cff"}),"file cannot be parsed. Make sure the formatting is correct."," ",(0,a.jsx)(en.A,{inline:!0,href:e,children:"Learn more about CITATION files."})]})}try{rp.displayName||(rp.displayName="InvalidCitationWarning")}catch{}let rf={Flash:"OverridingGlobalFundingFileWarning-module__Flash--nU7J4"};function rx({globalPreferredFundingPath:e}){return(0,a.jsxs)(i2.A,{className:rf.Flash,children:["This file is overriding the organization-wide ",(0,a.jsx)("code",{children:"FUNDING.yml"}),"file. Removing ",(0,a.jsx)("code",{children:"FUNDING.yml"}),"in this repository will use the organization default.",(0,a.jsxs)(en.A,{inline:!0,href:e??void 0,children:[" ","View organization funding file."]})]})}try{rx.displayName||(rx.displayName="OverridingGlobalFundingFileWarning")}catch{}function ry(){let{topBannersInfo:{overridingGlobalFundingFile:e,globalPreferredFundingPath:t,showInvalidCitationWarning:n,citationHelpUrl:i}}=(0,em.A)(),{showLicenseMeta:r}=(0,nK.Y_)();return(0,a.jsxs)(a.Fragment,{children:[r&&(0,a.jsx)(rh,{}),n&&(0,a.jsx)(rp,{citationHelpUrl:i}),(0,a.jsx)(i0.I6,{}),e&&(0,a.jsx)(rx,{globalPreferredFundingPath:t})]})}try{ry.displayName||(ry.displayName="BlobMidBanners")}catch{}let rb={Box:"BlobTopBanners-module__Box--g_bGk"};var rg=n(29295);let r_={Box:"DependabotConfigurationBanner-module__Box--vpfzX",Text:"DependabotConfigurationBanner-module__Text--oG7Go",Text_1:"DependabotConfigurationBanner-module__Text_1--P_iN0",Box_1:"DependabotConfigurationBanner-module__Box_1--EeKqW",Button:"DependabotConfigurationBanner-module__Button--N3lHP"};function rj(){let{defaultBranch:e}=(0,s.t)(),{refInfo:{name:t}}=(0,_.eu)(),{dependabotInfo:{showConfigurationBanner:n}}=(0,em.A)();return n?e===t?(0,a.jsx)(rv,{}):(0,a.jsx)(rw,{}):null}function rv(){let{dependabotInfo:{configFilePath:e,networkDependabotPath:t,dismissConfigurationNoticePath:n,configurationNoticeDismissed:i}}=(0,em.A)(),r=(0,m.useCallback)(()=>(0,eI.DI)(n,{method:"POST"}),[n]);return i?null:(0,a.jsx)("div",{className:r_.Box,children:(0,a.jsx)(rg.A,{caret:"top",open:!0,children:(0,a.jsxs)(rg.A.Content,{children:[(0,a.jsx)("h5",{className:r_.Text,children:"Dependabot"}),(0,a.jsx)("p",{className:r_.Text_1,children:"Dependabot creates pull requests to keep your dependencies secure and up-to-date."}),(0,a.jsxs)("p",{className:r_.Text_1,children:["You can opt out at any time by removing the ",(0,a.jsx)("code",{children:e})," config file."]}),(0,a.jsxs)("div",{className:r_.Box_1,children:[(0,a.jsx)(t2.Q,{as:"a",href:t,children:"View update status"}),(0,a.jsx)(t2.Q,{variant:"invisible",onClick:r,className:r_.Button,children:"Dismiss"})]})]})})})}function rw(){let{defaultBranch:e,name:t,ownerLogin:n}=(0,s.t)(),{path:i}=(0,_.eu)(),r=(0,et.nD_)({owner:n,repo:t,commitish:e,filePath:i});return(0,a.jsxs)(i2.A,{variant:"warning",children:[(0,a.jsxs)("h5",{children:[(0,a.jsx)(P.AlertIcon,{}),"Cannot configure Dependabot from this branch"]}),(0,a.jsxs)("p",{children:["To configure Dependabot, you must use"," ",(0,a.jsx)(en.A,{inline:!0,href:r,children:"this repository's default branch"})]})]})}try{rj.displayName||(rj.displayName="DependabotConfigurationBanner")}catch{}try{rv.displayName||(rv.displayName="DefaultBranchDependabotConfigurationBanner")}catch{}try{rw.displayName||(rw.displayName="DirectionsForNonDefaultBranch")}catch{}var rN=n(76662);let rk={Box:"OrgOnboardingTip-module__Box--Pk3N1",Box_1:"OrgOnboardingTip-module__Box_1--f_CUO",Box_2:"OrgOnboardingTip-module__Box_2--ownDi",Breadcrumbs_Item:"OrgOnboardingTip-module__Breadcrumbs_Item--Fr7wA",Box_3:"OrgOnboardingTip-module__Box_3--JX0Hy",VerifiedHTMLBox:"OrgOnboardingTip-module__VerifiedHTMLBox--JF5OH",Box_4:"OrgOnboardingTip-module__Box_4--geNrU",Box_5:"OrgOnboardingTip-module__Box_5--_7M4f",Link:"OrgOnboardingTip-module__Link--VIyoj",Text:"OrgOnboardingTip-module__Text--Lzw1f",Box_6:"OrgOnboardingTip-module__Box_6--Wo1hi",Text_1:"OrgOnboardingTip-module__Text_1--_Ahmq",Box_7:"OrgOnboardingTip-module__Box_7--taCFv",Link_1:"OrgOnboardingTip-module__Link_1--Xsk1N",Octicon:"OrgOnboardingTip-module__Octicon--uIRNM"};function rC({children:e,mediaUrl:t,mediaPreviewSrc:n,iconSvg:i,taskTitle:r,taskPath:o,org:s}){return(0,a.jsxs)("section",{className:rk.Box,children:[(0,a.jsxs)("div",{className:rk.Box_1,children:[(0,a.jsx)(rS,{iconSvg:i}),(0,a.jsxs)("div",{className:rk.Box_2,children:[(0,a.jsxs)(rN.A,{children:[(0,a.jsx)(rN.A.Item,{href:(0,et.p3r)({owner:s}),children:"Tasks"}),(0,a.jsx)(rN.A.Item,{href:o,className:rk.Breadcrumbs_Item,children:r})]}),e]})]}),(0,a.jsx)(rB,{mediaPreviewSrc:n,mediaUrl:t})]})}function rS({iconSvg:e}){return(0,a.jsxs)("div",{className:rk.Box_3,children:[(0,a.jsx)(eJ.vb,{html:e,className:rk.VerifiedHTMLBox}),(0,a.jsx)(rI,{size:6,color:"#6c84e9",bottom:-7,left:-7}),(0,a.jsx)(rI,{size:4,color:"#9e7bff",top:-4,right:4}),(0,a.jsx)(rI,{size:6,color:"#6c84e9",top:-7,right:-8})]})}function rI({size:e,color:t,left:n,right:i,top:r,bottom:o}){return(0,a.jsx)(D.az,{sx:{width:e,height:e,left:`${n}px`,right:`${i}px`,top:`${r}px`,bottom:`${o}px`,backgroundColor:t},className:rk.Box_4})}function rB({mediaUrl:e,mediaPreviewSrc:t}){return!((eu.cg?.innerWidth??0){location.href=r},children:"Upgrade now"})}try{rA.displayName||(rA.displayName="PlanSupportBanner")}catch{}try{rD.displayName||(rD.displayName="UpgradeButton")}catch{}function rO(){let{planSupportInfo:e,topBannersInfo:t}=(0,em.A)(),{actionsOnboardingTip:n}=t,i=(0,s.t)();return(0,a.jsxs)("div",{className:rb.Box,children:[(0,a.jsx)(rA,{...e,feature:"codeowners",featureName:"CODEOWNERS"}),(0,a.jsx)(rj,{}),n&&(0,a.jsx)(rC,{iconSvg:n.iconSvg,mediaPreviewSrc:n.mediaPreviewSrc,mediaUrl:n.mediaUrl,taskTitle:n.taskTitle,taskPath:n.taskPath,org:n.orgName,children:(0,a.jsx)(rT,{owner:i.ownerLogin,repo:i.name})})]})}try{rO.displayName||(rO.displayName="BlobTopBanners")}catch{}function rE({payload:e}){return(0,S.Hf)(e)?(0,a.jsx)(rR,{tree:e.tree}):(0,S.mM)(e)?(0,a.jsx)(rz,{blob:e.blob}):null}function rR({tree:e}){return(0,a.jsxs)(i1.X,{payload:e,children:[(0,a.jsx)(i0.I6,{}),(0,a.jsx)(rF,{}),(0,a.jsx)(rP,{})]})}function rz({blob:e}){return(0,a.jsxs)(em.s,{blob:e,children:[(0,a.jsx)(rO,{}),(0,a.jsx)(ry,{}),(0,a.jsx)(rl,{}),(0,a.jsx)(i3,{}),(0,a.jsx)(rP,{})]})}function rF(){let{items:e,totalCount:t}=(0,i1.d)(),n=t-e.length;return n>0?(0,a.jsxs)(D.Hx,{variant:"warning","data-testid":"repo-truncation-warning",sx:{mt:3},children:["Sorry, we had to truncate this directory to ",e.length.toLocaleString()," files. ",n.toLocaleString()," ",1===n?"entry was":"entries were"," omitted from the list. Latest commit info may be omitted."]}):null}function rP(){let e=(0,b.x7)(),t="";for(let n of e)t+=n.message;return(0,eg.kY)(t),(0,a.jsx)(a.Fragment,{children:e.map((e,t)=>(0,a.jsx)(D.Hx,{variant:e.variant,sx:{mt:3},children:e.message},t))})}try{rE.displayName||(rE.displayName="CodeViewBanners")}catch{}try{rR.displayName||(rR.displayName="TreeBanners")}catch{}try{rz.displayName||(rz.displayName="BlobBanners")}catch{}try{rF.displayName||(rF.displayName="TruncatedTreeBanner")}catch{}try{rP.displayName||(rP.displayName="CodeViewContextBanners")}catch{}var r$=n(19976),rM=n(81960),rW=n(62138),rH=n(98312),rV=n(98755),rG=n(8934);function rU({diff:e,index:t}){let[n,i]=(0,m.useState)(!1),[r,o]=(0,m.useState)(!1),[s,l]=(0,m.useState)(!1),c=[];for(let t=0;t<5;t++)e.deletions>t?c.push("deletion"):c.push("neutral");return e.diffHTML?(0,a.jsx)("div",{id:"readme",className:"readme prose-diff html-blob blob",children:(0,a.jsx)(eJ.vb,{html:e.diffHTML,className:"markdown-body container-lg"})}):(0,a.jsxs)(D.az,{sx:{border:"1px solid",borderColor:"border.default",borderRadius:"6px",mt:3},id:`diff-entry-${t}`,children:[(0,a.jsxs)(D.az,{sx:{backgroundColor:"canvas.subtle",borderBottom:"1px solid",borderColor:"border.default",display:"flex",py:1,px:2,alignItems:"center",gap:2},children:[(0,a.jsx)(nb.K,{"aria-label":n?"Expand diff":"Collapse diff",icon:n?P.ChevronRightIcon:P.ChevronDownIcon,size:"small",tooltipDirection:"s",variant:"invisible",onClick:()=>i(!n)}),(0,a.jsx)(D.EY,{sx:{color:"fg.muted"},children:e.deletions}),(0,a.jsx)(r$.uP,{squares:c}),(0,a.jsx)(D.N_,{sx:{color:"fg.default",cursor:"pointer"},underline:!1,href:`#diff-entry-${t}`,children:e.path}),(0,a.jsx)(rV.T,{textToCopy:e.path,ariaLabel:"Copy path to clipboard"})]}),n?null:(0,a.jsx)(D.az,{sx:{px:3*!r,py:4*!r,position:"relative"},tabIndex:-1,children:r?(0,a.jsx)(rG.x,{"data-testid":"delete-diff-fragment",src:e.loadDiffPath,onLoad:()=>l(!0),children:!s&&(0,a.jsx)(D.az,{sx:{display:"flex",alignItems:"center",justifyContent:"center",height:"137px"},children:(0,a.jsx)(iO.A,{})})}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(rK,{}),(0,a.jsxs)(D.az,{sx:{position:"absolute",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",top:0,left:0,height:"100%",width:"100%"},children:[(0,a.jsx)(D.N_,{onClick:()=>o(!0),sx:{cursor:"pointer"},children:"Load diff"}),"This file was deleted."]})]})})]})}function rK(){return(0,a.jsx)(D.az,{as:"svg","aria-hidden":"true",className:"width-full",viewBox:"0 0 340 84",xmlns:"http://www.w3.org/2000/svg",sx:{height:"84",maxWidth:"340px"},children:(0,a.jsx)(D.az,{as:"path",className:"js-diff-placeholder",clipPath:"url(#diff-placeholder)",d:"M0 0h340v84H0z",fillRule:"evenodd",sx:{fill:"canvas.subtle"}})})}try{rU.displayName||(rU.displayName="DiffEntry")}catch{}try{rK.displayName||(rK.displayName="DiffPlaceholderSvg")}catch{}function rq({deleteInfo:e,webCommitInfo:t}){let{path:n}=(0,_.eu)(),{helpUrl:i}=(0,_.sq)(),r=(0,s.t)();return t.shouldFork||t.shouldUpdate||t.lockedOnMigration?(0,a.jsx)(rH.T,{binary:!1,helpUrl:i,webCommitInfo:t}):(0,a.jsxs)(D.az,{sx:{maxWidth:"1280px",mx:"auto"},children:[(0,a.jsx)(rM.A,{as:"h1",className:"sr-only",children:`Deleting ${e.isBlob?"":"directory "}${r.name}/${n}. Commit changes to save.`}),(0,a.jsx)(r$.nq,{}),t.forkedRepo&&(0,a.jsx)(rW.r,{forkName:t.forkedRepo.name,forkOwner:t.forkedRepo.owner}),e.truncated&&(0,a.jsx)(i2.A,{variant:"warning",className:"mb-2",children:"The diff you're trying to view is too large. We only load the first 1000 changed files."}),e.diffs.map((e,t)=>(0,a.jsx)(rU,{diff:e,index:t},t))]})}try{rq.displayName||(rq.displayName="DeleteViewContent")}catch{}var rY=n(5205),rQ=n(79059),rX=n(75202),rZ=n(34424),rJ=n(83025);function r0({openPanel:e,readme:t,setOpenPanel:n,stickyHeaderHeight:i}){let{displayName:r,errorMessage:o,richText:l,headerInfo:c,timedOut:d}=t,{toc:u}=c||{},h=(0,s.t)(),{refInfo:m,path:p}=(0,_.eu)(),f=p&&"/"!==p?`${p}/${r}`:r;return(0,a.jsxs)(D.az,{sx:{minWidth:0,display:"flex",flexDirection:"row",justifyContent:"space-between",gap:3},children:[(0,a.jsxs)(D.az,{id:"readme",sx:{borderColor:"border.default",borderWidth:1,borderStyle:"solid",borderRadius:2,width:"toc"===e?"65%":"100%"},children:[(0,a.jsxs)(D.az,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:2,pr:2,pl:3,py:2,borderBottom:"1px solid",borderColor:"border.default"},children:[(0,a.jsx)(D.DZ,{as:"h2",sx:{fontSize:1,flexGrow:1},children:(0,a.jsx)(D.N_,{sx:{color:"fg.default","&:hover":{color:"accent.fg"}},href:"#readme",children:r})}),m.canEdit&&(0,a.jsx)(rJ.l,{editPath:(0,et.IO9)({repo:h,commitish:m.name,action:"edit",path:f}),editTooltip:"Edit README"}),(0,a.jsx)(iw,{toc:u,openPanel:e,setOpenPanel:n,isDirectoryReadme:!0})]}),(0,a.jsx)(rZ.e,{richText:l,errorMessage:o,path:f,stickyHeaderHeight:i,timedOut:d})]}),"toc"===e&&(0,a.jsx)(iq.Z,{sx:{height:"fit-content",width:"35%"},children:(0,a.jsx)(iL.A,{onClose:()=>{n(void 0)},toc:u})})]})}try{r0.displayName||(r0.displayName="DirectoryReadmePreview")}catch{}function r1({showTree:e,treeToggleElement:t}){let n=(0,m.useRef)(null),i=ek(n),r=eC();return(0,a.jsx)(D.az,{className:"react-blob-view-header-sticky",sx:{...r,zIndex:+!!i},ref:n,children:(0,a.jsx)(D.az,{sx:{display:"flex",flexDirection:"column",backgroundColor:"canvas.subtle",borderBottom:i?"1px solid var(--borderColor-default, var(--color-border-default))":"none",overflow:"hidden"},children:(0,a.jsx)(nF,{isStickied:i,showTree:e,treeToggleElement:t})})})}try{r1.displayName||(r1.displayName="FolderViewHeader")}catch{}function r2({tree:e,showTree:t,treeToggleElement:n}){let{openPanel:i,setOpenPanel:r}=(0,j.Ak)();return(0,a.jsxs)(i1.X,{payload:e,children:[(0,a.jsx)(el.D,{}),e.showBranchInfobar&&(0,a.jsx)(rX.t,{fallback:(0,a.jsx)(rY.o,{}),children:(0,a.jsx)(rY.k,{})}),(0,a.jsx)(r1,{showTree:t,treeToggleElement:n}),(0,a.jsxs)(D.az,{sx:{display:"flex",flexDirection:"column",gap:3},children:[(0,a.jsx)(rQ.t,{}),e.readme&&(0,a.jsx)(r0,{openPanel:i,setOpenPanel:r,readme:e.readme,stickyHeaderHeight:50})]})]})}try{r2.displayName||(r2.displayName="FileTreeViewContent")}catch{}var r4=n(77031);let r3={SplitPageLayout_Content:"CodeView-module__SplitPageLayout_Content--qxR1C"},r5=(0,m.lazy)(()=>Promise.all([n.e("vendors-node_modules_tanstack_query-core_build_modern_queryObserver_js-node_modules_tanstack_-defd52"),n.e("vendors-node_modules_github_selector-observer_dist_index_esm_js"),n.e("vendors-node_modules_tanstack_react-query_build_modern_useQuery_js-node_modules_diff_lib_index_mjs"),n.e("vendors-node_modules_lit-html_lit-html_js"),n.e("vendors-node_modules_codemirror_language_dist_index_js"),n.e("vendors-node_modules_codemirror_autocomplete_dist_index_js-node_modules_codemirror_search_dis-aafe81"),n.e("vendors-node_modules_js-yaml_dist_js-yaml_mjs"),n.e("vendors-node_modules_buffer_index_js"),n.e("vendors-node_modules_codemirror_lib_codemirror_js"),n.e("vendors-node_modules_github_text-expander-element_dist_index_js"),n.e("vendors-node_modules_jsonc-parser_lib_esm_main_js"),n.e("vendors-node_modules_cronstrue_dist_cronstrue_js"),n.e("vendors-node_modules_codemirror_lint_dist_index_js"),n.e("vendors-node_modules_github_file-attachment-element_dist_index_js-node_modules_swc_helpers_es-2b8e5c"),n.e("packages_web-commit-dialog_WebCommitDialog_tsx"),n.e("app_assets_modules_github_editor_codemirror-linter-util_ts-app_assets_modules_github_editor_y-89a4a6"),n.e("app_assets_modules_github_editor_yaml-editors_workflow_workflow-rules_ts"),n.e("app_assets_modules_react-code-view_components_blob-edit_WebCommitDialog_tsx"),n.e("app_assets_modules_github_editor_yaml-editors_dependabot_dependabot-rules_ts"),n.e("app_assets_modules_react-code-view_components_blob-edit_BlobEditor_tsx-packages_flash-error_F-707476")]).then(n.bind(n,97789)));function r6({initialPayload:e}){let t,n=(0,N.P)(e),i=(0,s.t)(),{findFileWorkerPath:r}=(0,_.sq)(),{path:o}=n,l=(0,w.p)(n.refInfo),c=(0,S.di)(n),d=(0,S.mM)(n),p=(0,S.KR)(n),k=(0,S.iS)(n),[I,O]=(0,m.useState)(null),E=(0,nK.U6)(i,l,o,n.error?.httpStatus===404),R=(0,r4.TX)(i,l,o,n.error?.httpStatus===404,d||p?n.blob.rawLines?.length??1e5:1e5),z=m.useRef(null),F=m.useRef(!1),P=m.useRef(!1),$=m.useRef(null),M=m.useRef(null),W="repos-file-tree",H=m.useRef(),[V,G]=(0,m.useState)(""),{toggleFocusedPaneShortcut:U}=(0,v.wk)();(0,T.s)(!1),(0,m.useEffect)(()=>()=>(0,T.s)(!0),[]),(0,L.L)(!0);let K=m.useMemo(()=>(0,C.aO)(n),[n.path,n.refInfo.currentOid]),q=(0,m.useCallback)(e=>{eB(e,null,null)},[]),{isTreeExpanded:Y,collapseTree:Q,expandTree:X,treeToggleElement:Z,treeToggleRef:J,searchBoxRef:ee}=(0,B.qn)(W,H,n.treeExpanded,eg.wQ,q),et=(0,m.useCallback)(()=>{window.innerWidth{if(!window.location.hash&&window.scrollY>0){let e=document.querySelector("#StickyHeader");e&&(e.style.position="relative",e.scrollIntoView(),e.style.position="sticky")}},[n.path]);let{codeCenterOption:ea}=(0,h.ud)(),eo=m.useCallback(()=>{window.innerWidth(function(){let e=document.getElementById(er),t=document.getElementById(eg.wQ);if(document.activeElement?.id===eg.wQ&&(P.current=!0),I?.contains(document.activeElement)&&!P.current?F.current=!0:z.current?.contains(document.activeElement)&&(F.current=!1),F.current||P.current)if(P.current){let t=$.current||e||I;F.current=!0,P.current=!1,t?.focus()}else{let e=M.current||z.current;$.current=I?.contains(document.activeElement)?document.activeElement:null,F.current=!1,P.current=!1,e?.focus()}else{let e=t||I;M.current=z.current?.contains(document.activeElement)?document.activeElement:null,F.current=!1,e?.focus()}})()})]})]})})})})})}function r7(){let e=(0,k.Z)(),{permalinkShortcut:t}=(0,v.wk)();return e.isCurrentPagePermalink()?(0,a.jsx)(x._,{buttonFocusId:eg.wQ,buttonHotkey:t.hotkey,buttonTestLabel:"header-permalink-button",onlyAddHotkeyScopeButton:!0,onButtonClick:()=>{}}):(0,a.jsx)(x._,{buttonFocusId:eg.wQ,buttonHotkey:t.hotkey,buttonTestLabel:"header-permalink-button",onButtonClick:()=>{let t=e.createPermalink();0>window.location.href.indexOf(t)&&(0,I.kd)(t)}})}try{r5.displayName||(r5.displayName="BlobEditor")}catch{}try{r6.displayName||(r6.displayName="CodeView")}catch{}try{r7.displayName||(r7.displayName="PermalinkShortcut")}catch{}(0,r.o)("react-code-view",()=>({App:p,routes:[(0,i.a)({path:"/:owner/:repo/tree/:branch/:path/*",Component:r6,shouldNavigateOnError:!0}),(0,i.a)({path:"/:owner/:repo/blob/:branch/:path/*",Component:r6,shouldNavigateOnError:!0}),(0,i.a)({path:"/:owner/:repo/blame/:branch/:path/*",Component:r6,shouldNavigateOnError:!0}),(0,i.a)({path:"/:owner/:repo/edit/:branch/:path/*",Component:r6,shouldNavigateOnError:!0}),(0,i.a)({path:"/:owner/:repo/new/:branch/:path/*",Component:r6,shouldNavigateOnError:!0}),(0,i.a)({path:"/:owner/:repo/new/:branch/*",Component:r6,shouldNavigateOnError:!0}),(0,i.a)({path:"/:owner/:repo/tree/delete/:branch/:path/*",Component:r6,shouldNavigateOnError:!0}),(0,i.a)({path:"/:owner/:repo/delete/:branch/:path/*",Component:r6,shouldNavigateOnError:!0}),(0,i.a)({path:"/:owner/:repo",Component:r6,shouldNavigateOnError:!0}),(0,i.a)({path:"/:owner/:repo/tree/:branch/*",Component:r6,shouldNavigateOnError:!0})]}))},84174:(e,t,n)=>{n.d(t,{V:()=>a});var i=n(74848),r=n(46251);let a=({label:e,link:t,className:n})=>t?(0,i.jsxs)(r.B,{direction:"horizontal",gap:"condensed",align:"baseline",className:n,children:[e," ",t]}):n?(0,i.jsx)("span",{className:n,children:e}):(0,i.jsx)(i.Fragment,{children:e});try{a.displayName||(a.displayName="LabelWithLink")}catch{}},84331:(e,t,n)=>{function i(e,t,n=.1){let r=o(e,t,n);return r&&-1===t.indexOf("/")&&(r+=o(e.substring(e.lastIndexOf("/")+1),t,n)),r}function r(e,t,n){if(t){let i=e.innerHTML.trim().match(n||function(e){let t=e.toLowerCase().split(""),n="",i=!0;for(let e of t){let t=e.replace(/[\\^$*+?.()|[\]{}]/g,"\\$&");i?(n+=`(.*)(${t})`,i=!1):n+=`([^${t}]*?)(${t})`}return RegExp(`${n}(.*?)$`,"i")}(t));if(!i)return;let r=!1,a=[];for(let e=1;e"),r=!0):r&&(a.push(""),r=!1),a.push(t))}e.innerHTML=a.join("")}else{let t=e.innerHTML.trim(),n=t.replace(/<\/?mark>/g,"");t!==n&&(e.innerHTML=n)}}n.d(t,{He:()=>r,UD:()=>s,dt:()=>i});let a=new Set([" ","-","_"]);function o(e,t,n=.1){let i=e;if(i===t)return 1;let r=i.length,s=0,l=0,c=!0;for(let e of t){let t=i.indexOf(e.toLowerCase()),o=i.indexOf(e.toUpperCase()),d=Math.min(t,o),u=d>-1?d:Math.max(t,o);if(-1===u)return 0;s+=.1,i[u]===e&&(s+=.1),0===u&&(s+=.9-n,c&&(l=1)),a.has(i.charAt(u-1))&&(s+=.9-n),i=i.substring(u+1,r),c=!1}let d=t.length,u=s/d,h=(d/r*u+u)/2;return l&&h+n<1&&(h+=n),h}function s(e,t){return e.score>t.score?-1:e.scoret.text)}},86131:(e,t,n)=>{n.d(t,{A:()=>a,s:()=>r});let i=!0;function r(e){i=e}function a(){return i}},89024:(e,t,n)=>{n.d(t,{ah:()=>r,lA:()=>o,tz:()=>a});let i={Text:"Text",Symbol:"Symbol"};function r(e){let t=`(\\W|^)${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(\\W|$)`;return{kind:i.Symbol,regexp:RegExp(t,"g")}}function a(e){let t=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return{kind:i.Text,regexp:RegExp(t,"gi")}}function*o(e,t,n=0){for(let r=n;r0&&/\W/.test(t[0])&&(t=t.substring(1),o+=n[0].length-t.length),t.length>0&&/\W/.test(t[t.length-1])&&(t=t.substring(0,t.length-1))),yield{line:r,column:o,columnEnd:o+t.length,text:a}}}}},89136:(e,t,n)=>{n.d(t,{AP:()=>CodeSymbol,BW:()=>CodeReference,u:()=>a,v0:()=>SymbolKind});var i=n(50467),r=n(25407);let a={BLACKBIRD_SEARCH:"blackbird-search",BLACKBIRD_ANALYSIS:"blackbird-analysis",ALEPH_PRECISE:"aleph-precise",BLOB_CONTENT:"blob-content-search"};let SymbolKind=class SymbolKind{constructor({kind:e}){(0,i._)(this,"enumStringVal",void 0),(0,i._)(this,"fullName",void 0),(0,i._)(this,"shortName",void 0),(0,i._)(this,"plColor",void 0),(0,i._)(this,"rank",void 0);let[t,n]=function(e){if("string"==typeof e){let t=e.toString().replace("SYMBOL_KIND_","").replace(/_DEF$/,"").replace(/_REF$/,"").toLowerCase();if(e.startsWith("SYMBOL_KIND_"))return[t,e.toString()];if(""!==e&&"unknown"!==e){let t=`SYMBOL_KIND_${e.toUpperCase()}`;return"call"===e?t+="_REF":t+="_DEF",[e,t]}}return["unknown","SYMBOL_KIND_UNKNOWN"]}(e);this.enumStringVal=n,this.fullName=t,this.shortName=function(e){switch(e){case"function":case"method":return"func";case"interface":return"intf";case"implementation":return"impl";case"constant":return"const";case"module":return"mod";case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":case"class":case"call":case"enum":case"field":case"macro":case"struct":case"trait":case"type":case"union":return e;default:return e.substring(0,1)}}(t),this.plColor=function(e){switch(e){case"function":case"method":default:return"prettylights.syntax.entity";case"class":case"enum":case"struct":case"union":return"prettylights.syntax.constant";case"interface":case"trait":return"prettylights.syntax.keyword";case"constant":case"field":case"enum member":return"prettylights.syntax.variable";case"implementation":return"prettylights.syntax.string"}}(t),this.rank=({class:1,struct:1,enum:1,type:2,interface:3,trait:3,module:4,implementation:5,function:6,method:7,call:8,field:9})[t]||9}};let CodeSymbol=class CodeSymbol{setSymbolDepth(e){this.depth=e}setFileInfo(e,t,n){this.repo=e,this.refInfo=t,this.path=n}get lineNumber(){return this.ident.start.line+1}setSnippet(e,t,n,i){this.highlightedText=e,this.stylingDirectives=t,this.bodyText=n,this.leadingWhitespace=i}href(){if(!this.repo||!this.refInfo||!this.path)return`/${window.location.pathname}#L${this.lineNumber}`;let e=this.source===a.BLACKBIRD_SEARCH?this.repo.defaultBranch:this.refInfo.name||this.refInfo.currentOid;return(0,r.nD_)({owner:this.repo.ownerLogin,repo:this.repo.name,commitish:e,filePath:this.path,lineNumber:this.lineNumber})}pathKey(){return`${this.repo.ownerLogin}/${this.repo.name}/${this.refInfo.currentOid}/${this.path}`}constructor({ident:e,extent:t,kind:n,name:r,fullyQualifiedName:a,source:o}){(0,i._)(this,"ident",void 0),(0,i._)(this,"extent",void 0),(0,i._)(this,"kind",void 0),(0,i._)(this,"name",void 0),(0,i._)(this,"fullyQualifiedName",void 0),(0,i._)(this,"highlightedText",void 0),(0,i._)(this,"stylingDirectives",void 0),(0,i._)(this,"leadingWhitespace",void 0),(0,i._)(this,"source",void 0),this.ident=e,this.extent=t,this.kind=new SymbolKind({kind:n}),this.name=r,this.fullyQualifiedName=a,this.source=o}};let CodeReference=class CodeReference{get lineNumber(){return this.ident.start.line+1}href(e){if(!this.repo||!this.refInfo||!this.path)return`/${window.location.pathname}#L${this.lineNumber}`;let t=this.source===a.BLACKBIRD_SEARCH?this.repo.defaultBranch:this.refInfo.name||this.refInfo.currentOid,n={owner:this.repo.ownerLogin,repo:this.repo.name,commitish:t,filePath:this.path,lineNumber:this.lineNumber,plain:this.isPlain?1:void 0};return e?(0,r.buO)(n):(0,r.nD_)(n)}setSnippet(e,t,n,i){this.highlightedText=e,this.stylingDirectives=t,this.bodyText=n,this.leadingWhitespace=i}pathKey(){return`${this.repo.ownerLogin}/${this.repo.name}/${this.refInfo.currentOid}/${this.path}`}constructor({ident:e,repo:t,refInfo:n,path:r,isPlain:a,source:o}){(0,i._)(this,"ident",void 0),(0,i._)(this,"repo",void 0),(0,i._)(this,"refInfo",void 0),(0,i._)(this,"path",void 0),(0,i._)(this,"isPlain",void 0),(0,i._)(this,"highlightedText",void 0),(0,i._)(this,"stylingDirectives",void 0),(0,i._)(this,"source",void 0),(0,i._)(this,"leadingWhitespace",void 0),this.ident=e,this.repo=t,this.refInfo=n,this.path=r,this.isPlain=a??!1,this.source=o}}},98312:(e,t,n)=>{n.d(t,{T:()=>u});var i=n(74848),r=n(71315),a=n(10925),o=n(38621),s=n(21373),l=n(57352),c=n(10095);let d={Box:"EditIssues-module__Box--fgd2d",Octicon:"EditIssues-module__Octicon--LlC7t",Text:"EditIssues-module__Text--zkCQm",Text_1:"EditIssues-module__Text_1--tjv7I"};function u({binary:e,helpUrl:t,webCommitInfo:n}){let{shouldFork:u,lockedOnMigration:h,shouldUpdate:m,userOverRepositoryLimit:p}=n,f=r.fV.pathname;f.endsWith("/")&&(f=f.slice(0,-1));let x=f+r.fV.search,y=(0,a.H)(x,"post"),b=h?{message:"This repository is currently being migrated.",description:"Sorry, you\u2019re not able to edit this repository while the migration is in progress.",icon:o.LockIcon}:u?p?{message:"You are over your repository limit",description:"Sorry, you\u2019re not able to fork this repository.",icon:o.AlertIcon}:{message:"You need to fork this repository to propose changes.",description:"Sorry, you\u2019re not able to edit this repository directly\u2014you need to fork it and propose your changes from there instead.",icon:o.GitBranchIcon}:m?{message:"Sorry, it looks like your fork is outdated!",description:"You\u2019ll have to bring it up to date before you can propose changes.",icon:o.AlertIcon}:e?{message:"Binary file content is not editable.",description:"But you can still rename or move it.",icon:o.PencilIcon}:null;return b?(0,i.jsxs)("div",{className:d.Box,children:[(0,i.jsx)(c.A,{icon:b.icon,size:"medium",className:d.Octicon}),(0,i.jsx)("h3",{className:d.Text,children:b.message}),(0,i.jsx)("span",{className:d.Text_1,children:b.description}),(u&&!p||m)&&(0,i.jsxs)("form",{"data-turbo":"false",method:"post",action:x,"data-testid":"edit-issues-form",children:[(0,i.jsx)("input",{hidden:!0,name:"authenticity_token",value:y,readOnly:!0}),(0,i.jsx)(s.Q,{type:"submit",variant:"primary",children:u?"Fork this repository":"Update your fork"})]}),u&&p?(0,i.jsx)(l.A,{href:`${t}/repositories/creating-and-managing-repositories/repository-limits`,children:"Learn more repository limits"}):(0,i.jsx)(l.A,{href:`${t}/articles/fork-a-repo`,children:"Learn more about forks"})]}):null}try{u.displayName||(u.displayName="EditIssues")}catch{}}},e=>{e.O(0,["primer-react","react-lib","react-core","octicons-react","vendors-node_modules_primer_behaviors_dist_esm_index_mjs","vendors-node_modules_oddbird_popover-polyfill_dist_popover-fn_js","vendors-node_modules_stacktrace-parser_dist_stack-trace-parser_esm_js-node_modules_github_bro-2f4e04","vendors-node_modules_emotion_is-prop-valid_dist_emotion-is-prop-valid_esm_js-node_modules_emo-825c28","vendors-node_modules_github_mini-throttle_dist_index_js-node_modules_github_hydro-analytics-c-c228f9","vendors-node_modules_tanstack_query-core_build_modern_mutation_js-node_modules_tanstack_query-9bf7e4","vendors-node_modules_swc_helpers_esm__class_private_method_get_js-node_modules_swc_helpers_es-d6b1a6","vendors-node_modules_dompurify_dist_purify_es_mjs","vendors-node_modules_lodash-es__Stack_js-node_modules_lodash-es__Uint8Array_js-node_modules_l-4faaa6","vendors-node_modules_github_relative-time-element_dist_index_js","vendors-node_modules_github_hydro-analytics-client_dist_analytics-client_js-node_modules_gith-c7919d","vendors-node_modules_tanstack_react-virtual_dist_esm_index_js","vendors-node_modules_github_catalyst_lib_index_js-node_modules_swc_helpers_esm__class_static_-5988f51","vendors-node_modules_github_mini-throttle_dist_decorators_js-node_modules_fzy_js_index_js-nod-a71c46","packages_document-metadata_document-metadata_ts-packages_failbot_failbot_ts","packages_paths_index_ts","packages_history_history_ts-packages_promise-with-resolvers-polyfill_promise-with-resolvers-p-2cdd04","packages_ref-selector_RefSelector_tsx","packages_copilot-chat_utils_copilot-local-storage_ts","packages_copilot-chat_utils_language-info_ts-packages_copy-to-clipboard_CopyToClipboardButton_tsx","packages_commit-attribution_index_ts-packages_commit-checks-status_index_ts-packages_current--18e2dc","packages_diffs_diff-parts_ts","packages_code-view-shared_hooks_use-canonical-object_ts-packages_code-view-shared_hooks_use-f-11e2e7","packages_app-uuid_app-uuid_ts-packages_repos-file-tree-view_repos-file-tree-view_ts","app_assets_modules_react-code-view_utilities_lines_ts"],()=>e(e.s=74945)),e.O()}]); //# sourceMappingURL=react-code-view-69a83183f177.js.map